"ui";
ui.layout(
    <vertical bg="#DDDDDD">
        <horizontal h="80dp" weightSum="3">
            <img layout_weight="1" w="60" h="60" margin="20 20 " src="file://头像图.png" />
            <text layout_weight="1" text="一起6合集" textSize="30sp" marginTop="10" textStyle="bold" layout_gravity="center" />
            <img layout_weight="1" w="60" h="60" id="renqua" margin="20 20 " src="file://入群.png" />
        </horizontal>
        <vertical bg="#DDDDDD">
            <TextView textStyle="bold" id="tv_text2" singleLine="true" ellipsize="marquee" focusable="true"
                textSize="18sp" textColor="#DC143C" marginLeft="15" marginRight="15"
                text="注意：本工具仅用于技术交流,本人不承担任何法律责任。请在下载后24小时内删除!!!" />
            <card w="*" h="50" margin="5 5" cardCornerRadius="10dp" gravity="center_vertical" cardBackgroundColor="#DDDDDD" >
                <horizontal h="50dp" marginLeft="20" marginRight="20" >
                    <Switch h="50dp" id="无障碍服务" checked="{{auto.service != null}}" textStyle="bold" textSize="20sp" text="无障碍服务 " layout_weight="1" />
                    <Switch h="50dp" id="悬浮窗权限" checked="{{XUANFUCHAUNG() != false}}" layout_gravity="right" textStyle="bold" textSize="20sp" text="悬浮窗权限 " layout_weight="1" />
                </horizontal>
            </card>
        </vertical>
        <viewpager>
            <vertical bg="#DDDDDD">
                <vertical >
                    <ScrollView layout_weight="1">
                        <vertical>
                            <card margin="5 5" cardCornerRadius="5dp" >
                                <vertical >
                                    <horizontal h="35pd" w="*" bg="#336699" gravity="center">
                                        <text text="卷轴类型" layout_weight="1" textColor="#B8860B" textSize="20sp" textStyle="bold" gravity="center" />
                                        <text text="循" layout_weight="1" textColor="#B8860B" textSize="20sp" textStyle="bold" gravity="center" />
                                        <input h="50pd" w="30" id="xhcs" text="2" bg="#336699" textStyle="bold" gravity="center" />
                                        <text text="环" layout_weight="1" textColor="#B8860B" textSize="20sp" textStyle="bold" gravity="center" />
                                        <text text="运行日志" layout_weight="1" textColor="#B8860B" textSize="20sp" textStyle="bold" gravity="center" id="colsrz" />
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="YCQNW" h="40" textSize="13sp" textStyle="bold" text="YCQNW" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="YCQNW下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="YCQNW交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="YCQNW检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="YCQNW余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="YCQNW分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="星光闪闪" h="40" textSize="13sp" textStyle="bold" text="星光闪闪" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="星光闪闪下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="星光闪闪交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="星光闪闪检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="星光闪闪余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="星光闪闪分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="人人行" h="40" textSize="13sp" textStyle="bold" text="人人行" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="人人行下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="人人行交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="人人行检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="人人行余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="人人行分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="星星V剧" h="40" textSize="13sp" textStyle="bold" text="星星V剧" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="星星V剧下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="星星V剧交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="星星V剧检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="星星V剧余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="星星V剧分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="世界庄园" h="40" textStyle="bold" text="世界庄园" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="世界庄园下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="世界庄园交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="世界庄园检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="世界庄园余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="世界庄园分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="优伴心诚" h="40" textStyle="bold" text="优伴心诚" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="优伴心诚下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="优伴心诚交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="优伴心诚检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="优伴心诚余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="优伴心诚分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="万象纪元" h="40" textStyle="bold" text="万象纪元" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="万象纪元下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="万象纪元交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="万象纪元检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="万象纪元余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="万象纪元分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="食领味来" h="40" textStyle="bold" text="食领味来" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="食领味来下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="食领味来交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="食领味来检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="食领味来余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="食领味来分身" /></horizontal>
                                    </horizontal>
                                </vertical>
                            </card >
                            <card margin="5 5" cardCornerRadius="5dp" >
                                <vertical>
                                    <horizontal h="35pd" w="*" bg="#336699" gravity="center">
                                        <text text="广告类型" layout_weight="1" textColor="#B8860B" textSize="20sp" textStyle="bold" gravity="center" />
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="乐享" h="40" textStyle="bold" text="乐享" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="乐享下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="乐享交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="乐享检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="乐享余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="乐享分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="玉视界" h="40" textStyle="bold" text="玉视界" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="玉视界下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="玉视界交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="玉视界检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="玉视界余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="玉视界分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="塔塔生态" h="40" textStyle="bold" text="塔塔生态" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="塔塔生态下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="塔塔生态交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="塔塔生态检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="塔塔生态余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="塔塔生态分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="阅瞬圈" h="40" textStyle="bold" text="阅瞬圈" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="阅瞬圈下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="阅瞬圈交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="阅瞬圈检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="阅瞬圈余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="阅瞬圈分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="一起益事" h="40" textStyle="bold" text="一起益事" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="一起益事下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="一起益事交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="一起益事检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="一起益事余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="一起益事分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="蛋蛋星球" h="40" textStyle="bold" text="蛋蛋星球" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="蛋蛋星球下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="蛋蛋星球交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="蛋蛋星球检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="蛋蛋星球余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="蛋蛋星球分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="一个圈圈" h="40" textStyle="bold" text="一个圈圈" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="一个圈圈下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="一个圈圈交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="一个圈圈检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="一个圈圈余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="一个圈圈分身" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="智链星途" h="40" textStyle="bold" text="智链星途" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="智链星途下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="智链星途交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="智链星途检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="智链星途余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="智链星途分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="世梅直播" h="40" textStyle="bold" text="世梅直播" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="世梅直播下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="世梅直播交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="世梅直播检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="世梅直播余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="世梅直播分身" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="享视" h="40" textColor="#FF0000" textStyle="bold" text="享视" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="享视下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="享视交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="享视检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="享视余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="享视分身" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="鲸鱼Plus" h="40" textStyle="bold" text="鲸鱼Plus" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="鲸鱼Plus下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="鲸鱼Plus交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="鲸鱼Plus检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="鲸鱼Plus余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="鲸鱼Plus分身" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="换换" h="40" textStyle="bold" text="换换" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="换换下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="换换交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="换换检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="换换余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="换换分身" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="中熵云" h="40" textStyle="bold" text="中熵云" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="中熵云下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="中熵云交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="中熵云检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="中熵云余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="中熵云分身" /></horizontal>
                                    </horizontal>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="熵信" h="40" textStyle="bold" text="熵信" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" textStyle="bold" id="熵信下载" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" textStyle="bold" textColor="#B8860B" text="交易" h="40" id="熵信交易" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" id="熵信检测" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" text="余额" h="40" textStyle="bold" textColor="#111111" id="熵信余额" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" id="熵信分身" /></horizontal>
                                    </horizontal>
                                </vertical>
                            </card >
                            <card margin="5 5" cardCornerRadius="5dp" >
                                <vertical>
                                    <vertical h="35pd" w="*" bg="#336699" gravity="center">
                                        <text text="游戏类型" layout_weight="1" textColor="#B8860B" textSize="20sp" textStyle="bold" gravity="center" />
                                    </vertical>
                                    <horizontal h="40" w="*" >
                                        <horizontal h="40" w="90" ><checkbox id="灵谷仙境" h="40" textStyle="bold" text="灵谷仙境" /></horizontal>
                                        <horizontal h="40" w="80" ><button style="Widget.AppCompat.Button.Borderless" id="灵谷仙境下载" textStyle="bold" h="40" text="已安装" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal"><text gravity="center" id="灵谷仙境交易" textStyle="bold" textColor="#B8860B" text="交易" h="40" /></horizontal>
                                        <horizontal h="40" w="50" gravity="center_horizontal" ><text gravity="center" id="灵谷仙境检测" textStyle="bold" text="未检测" textColor="#DDDDDD" h="40" /></horizontal>
                                        <horizontal h="40" w="50" ><text gravity="center" marginLeft="5" id="灵谷仙境余额" text="余额" h="40" textStyle="bold" textColor="#111111" /></horizontal>
                                        <horizontal h="40" w="40" gravity="center_horizontal" ><text id="灵谷仙境分身" gravity="center" textColor="#B8860B" textStyle="bold" text="分身" h="40" /></horizontal>
                                    </horizontal>
                                </vertical>
                            </card >
                        </vertical >
                    </ScrollView>
                    <button h="50dp" id="开始按钮" bg="#A9A9A9" text="开始运行" textColor="#FFE4E1" textSize="20sp" />
                </vertical>
            </vertical>
        </viewpager>
    </vertical >
)
ui.tv_text2.setSelected(true);
let color = "-5892813"
importClass(android.graphics.Color);
ui.statusBarColor(Color.parseColor("#696969"))
ui.无障碍服务.on("check", function (checked) {
    if (checked && auto.service == null) {
        app.startActivity({
            action: "android.settings.ACCESSIBILITY_SETTINGS"
        });
    }
    if (!checked && auto.service != null) {
        auto.service.disableSelf();
    }
});
ui.悬浮窗权限.on("check", function (checked) {
    importClass(android.content.Intent);
    importClass(android.net.Uri);
    importClass(android.provider.Settings);
    let intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
        Uri.parse("package:" + context.getPackageName()));
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    app.startActivity(intent);
});
ui.renqua.on("click", () => {
    JIAQUN()
})
ui.colsrz.on("click", () => {
    app.startActivity("console")
})
ui.emitter.on("resume", function () {
    ui.无障碍服务.checked = auto.service != null;
    ui.悬浮窗权限.checked = XUANFUCHAUNG() != false;
});
let buttons = [

    { selector: "YCQNW分身", action: () => toast("如需需要.请联系添加") },
    { selector: "阅瞬圈分身", action: () => toast("如需需要.请联系添加") },
    { selector: "星光闪闪分身", action: () => toast("如需需要.请联系添加") },
    { selector: "乐享分身", action: () => toast("如需需要.请联系添加") },
    { selector: "玉视界分身", action: () => toast("如需需要.请联系添加") },
    { selector: "灵谷仙境分身", action: () => toast("如需需要.请联系添加") },
    { selector: "塔塔生态分身", action: () => toast("如需需要.请联系添加") },
    { selector: "一起益事分身", action: () => toast("如需需要.请联系添加") },
    { selector: "人人行分身", action: () => toast("如需需要.请联系添加") },
    { selector: "蛋蛋星球分身", action: () => toast("如需需要.请联系添加") },
    { selector: "智链星途分身", action: () => toast("如需需要.请联系添加") },
    { selector: "星星V剧分身", action: () => toast("如需需要.请联系添加") },
    { selector: "世界庄园分身", action: () => toast("如需需要.请联系添加") },
    { selector: "优伴心诚分身", action: () => toast("如需需要.请联系添加") },
    { selector: "万象纪元分身", action: () => toast("如需需要.请联系添加") },
    { selector: "食领味来分身", action: () => toast("如需需要.请联系添加") },
    { selector: "世梅直播分身", action: () => toast("如需需要.请联系添加") },
    { selector: "享视分身", action: () => toast("如需需要.请联系添加") },
    { selector: "一个圈圈分身", action: () => toast("如需需要.请联系添加") },
    { selector: "鲸鱼Plus分身", action: () => toast("如需需要.请联系添加") },
    { selector: "换换分身", action: () => toast("如需需要.请联系添加") },
    { selector: "中熵云分身", action: () => toast("如需需要.请联系添加") },
    { selector: "熵信分身", action: () => toast("如需需要.请联系添加") },
];
let jainx = [
    ui.鲸鱼Plus交易, ui.世梅直播交易, ui.优伴心诚交易, ui.熵信交易, ui.灵谷仙境交易, ui.玉视界交易,
    ui.享视交易, ui.一个圈圈交易, ui.食领味来交易, ui.万象纪元交易, ui.YCQNW交易,
    ui.换换交易, ui.世界庄园交易, ui.中熵云交易, ui.星星V剧交易, ui.智链星途交易, ui.星光闪闪交易,
    ui.蛋蛋星球交易, ui.人人行交易, ui.一起益事交易, ui.塔塔生态交易, ui.乐享交易, ui.阅瞬圈交易,
];
let appPackages = {

    "YCQNW": "https://t.go-tour.net/web/#/pages/web/register/register?ycode=582384",
    "阅瞬圈": "https://h5-pro.yueshunquan.com/register?info=ouu9v5",
    "星光闪闪": "https://api.saierwl.top/#/?inviteCode=K7o6u0",
    "乐享": "https://app.peigua.cn/h5/download?key=UUJ6NVpBYzlOWkdqUHdhYzlSbW5MamtaYVhTaU1vTnpTV2ROUWxJMUZjelJRRGY3VHlJK09wd0JRa3Z4RjVIelNQZVVIR05xSWVxR1JzTjRyNC93K3c9PQ==",
    "玉视界": "https://api.030i.top/H5/registerH5.html?code=9LLKDH",
    "灵谷仙境": "http://cdn.lingguxj.cn/installer/app-release.apk",
    "塔塔生态": "http://ddlq.shjinz68.com/web/reg/index.html?recommend=QZPDW5AZ",
    "一起益事": "https://regist0re7gi1st8hyaer.yiqihuayuan.com/register?info=ouu9v5",
    "人人行": "https://m.dmz11.top//register.html?serialNo=48753290",
    "蛋蛋星球": "https://dwz.cn/TEb8NF14",
    "智链星途": "http://cdnreg.zlxt.xyz/reg/#/?scene=ql7zFo",
    "星星V剧": "https://www.gxjzxh.art/h5/#/pages/login/reg?uid=204873",
    "世界庄园": "https://www.fgg306.cn/h5/#/register?code=cuvxyZ",
    "优伴心诚": "https://ybxc.pwgxybkjgs.club/h5/pages/register/register?iu=NDEwMA%3D%3D&type=1",
    "万象纪元": "https://treasure.wanxiangjiyuan.com/?userCode=50454630",
    "食领味来": "http://m.syqingmi.xyz/?inviteCode=M2XA7X",
    "鲸鱼Plus": "http://a1.jingyu77.com/web/index.html#/?yqCode=CHETIXEC",
    "享视": "http://www.xiangshi.video/h5/reg.html?invite_code=2DLHWS",
    "一个圈圈": "https://qqusersystemfaster.yigequanquan.com/register?info=ouu9v5",
    "换换": "https://www.jingyuplus.com/xwj/#/register?inviteCode=uyuiWE",
    "世梅直播": "https://h.wsmp.live/live/#/register?v=1&inviteCode=LR3KNGX",
    "中熵云": "https://www.fgg306.cn/h5/#/register?code=cuvxyZ",
    "熵信": "https://www.fgg306.cn/h5/#/register?code=cuvxyZ",
};
buttons.forEach(button => {
    ui[button.selector].on("click", button.action);
});
for (let i = 0; i < jainx.length; i++) {
    jainx[i].on("click", () => {
        JIAQUN();
    });
}
for (let appName in appPackages) {
    let packageName = app.getPackageName(appName);
    if (packageName == null) {
        let currentAppName = appName;
        ui[currentAppName + "下载"].text("去下载");
        ui[currentAppName + "下载"].setTextColor(color);
        ui[currentAppName + "下载"].on("click", () => {
            app.openUrl(appPackages[currentAppName]);
        });
    }
}
let BDshuju = storages.create("yiq6ui");
let date = new Date();
let 年 = date.getFullYear(), 月 = date.getMonth() + 1, 日 = date.getDate()
if (日 < 10) {
    日 = "0" + Number(日)
}
if (月 < 10) {
    月 = "0" + Number(月)
}
let 现在的时间数 = 年.toString() + 月.toString() + 日.toString();
let 本地时间 = BDshuju.get("时间数据")
let apps = [
    { key: "yeues01", label: "YCQNW检测" },
    { key: "yeues02", label: "玉视界检测" },
    { key: "yeues03", label: "世梅直播检测" },
    { key: "yeues04", label: "鲸鱼Plus检测" },
    { key: "yeues05", label: "食领味来检测" },
    { key: "yeues06", label: "万象纪元检测" },
    { key: "yeues07", label: "塔塔生态检测" },
    { key: "yeues08", label: "阅瞬圈检测" },
    { key: "yeues09", label: "灵谷仙境检测" },

    { key: "yeues11", label: "优伴心诚检测" },
    { key: "yeues12", label: "享视检测" },
    { key: "yeues13", label: "一个圈圈检测" },
    { key: "yeues14", label: "世界庄园检测" },
    { key: "yeues15", label: "乐享检测" },
    { key: "yeues16", label: "换换检测" },
    { key: "yeues17", label: "中熵云检测" },
    { key: "yeues18", label: "星星V剧检测" },

    { key: "yeues20", label: "熵信检测" },

    { key: "yeues22", label: "星光闪闪检测" },

    { key: "yeues24", label: "人人行检测" },
    { key: "yeues25", label: "智链星途检测" },
    { key: "yeues26", label: "一起益事检测" },
    { key: "yeues27", label: "蛋蛋星球检测" },

];
if (Number(现在的时间数) > Number(本地时间)) {
    storages.remove("yiq6ui");
} else {
    for (let itemf of apps) {
        let value = BDshuju.get(itemf.key);
        if (value == 0) {
            ui[itemf.label].setText("已完成");
            ui[itemf.label].setTextColor(color);
        }
    }
}
let yueesju = storages.create("yiq6uisuj");
let balanceUI = [
    { key: "yeuem01", label: "YCQNW余额" },
    { key: "yeuem02", label: "玉视界余额" },
    { key: "yeuem03", label: "世梅直播余额" },
    { key: "yeuem04", label: "鲸鱼Plus余额" },
    { key: "yeuem05", label: "食领味来余额" },
    { key: "yeuem06", label: "万象纪元余额" },
    { key: "yeuem07", label: "塔塔生态余额" },
    { key: "yeuem08", label: "阅瞬圈余额" },
    { key: "yeuem09", label: "灵谷仙境余额" },

    { key: "yeuem11", label: "优伴心诚余额" },
    { key: "yeuem12", label: "享视余额" },
    { key: "yeuem13", label: "一个圈圈余额" },
    { key: "yeuem14", label: "世界庄园余额" },
    { key: "yeuem15", label: "乐享余额" },
    { key: "yeuem16", label: "换换余额" },
    { key: "yeuem17", label: "中熵云余额" },
    { key: "yeuem18", label: "星星V剧余额" },

    { key: "yeuem20", label: "熵信余额" },

    { key: "yeuem22", label: "星光闪闪余额" },

    { key: "yeuem24", label: "人人行余额" },
    { key: "yeuem25", label: "智链星途余额" },
    { key: "yeuem26", label: "一起益事余额" },
    { key: "yeuem27", label: "蛋蛋星球余额" },
];
for (let item of balanceUI) {
    let inputValue = yueesju.get(item.key);
    if (inputValue) {
        ui[item.label].setText(inputValue);
    }
}
let yuexe = storages.create("yiq6xhc");
var fsshurz1 = yuexe.get("fsmex")
if (fsshurz1) {
    ui.xhcs.setText(fsshurz1)
}
ui.开始按钮.on("click", () => {
    if (XUANFUCHAUNG() == false) {
        toast("请先开启悬浮窗权限！")
        return;
    }
    if (auto.service == null) {
        toast("请先开启无障碍服务！");
        return;
    }
    cscne()
    events.setKeyInterceptionEnabled("volume_up", true)
    events.observeKey();
    events.onKeyDown("volume_up", function (event) {
        // images.stopScreenCapturer()
        floaty.closeAll()
        threads.shutDownAll()
        engines.stopAll()
    });
    setScreenMetrics(1080, 2400);
    BDshuju.put("时间数据", 现在的时间数)
    threads.start(function () {
        KONGZHITAI()
        threads.start(function () {
            ZTquanx()
            sleep(1000)
        });
        try {
            for (let ir = 1; ir <= fsshurz1; ir++) {
                sleep(random(800, 1200))

                if (ui.YCQNW.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues01") == "0") {
                            log("YCQNW完成")
                        } else {
                            YCQNW操作()
                        }
                    } else {
                        YCQNW操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.星光闪闪.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues22") == "0") {
                            log("星光闪闪完成")
                        } else {
                            星光闪闪操作()
                        }
                    } else {
                        星光闪闪操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.人人行.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues24") == "0") {
                            log("人人行完成")
                        } else {
                            人人行操作()
                        }
                    } else {
                        人人行操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.星星V剧.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues18") == "0") {
                            log("星星V剧完成")
                        } else {
                            星星V剧操作()
                        }
                    } else {
                        星星V剧操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.世界庄园.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues14") == "0") {
                            log("世界庄园完成")
                        } else {
                            世界庄园操作()
                        }
                    } else {
                        世界庄园操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.优伴心诚.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues11") == "0") {
                            log("优伴心诚完成")
                        } else {
                            优伴心诚操作()
                        }
                    } else {
                        优伴心诚操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.万象纪元.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues06") == "0") {
                            log("万象纪元完成")
                        } else {
                            万象纪元操作()
                        }
                    } else {
                        万象纪元操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.食领味来.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues05") == "0") {
                            log("食领味来完成")
                        } else {
                            食领味来操作()
                        }
                    } else {
                        食领味来操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.乐享.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues15") == "0") {
                            log("乐享完成")
                        } else {
                            乐享操作()
                        }
                    } else {
                        乐享操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.玉视界.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues02") == "0") {
                            log("玉视界完成")
                        } else {
                            玉视界操作()
                        }
                    } else {
                        玉视界操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.塔塔生态.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues07") == "0") {
                            log("塔塔生态完成")
                        } else {
                            塔塔生态操作()
                        }
                    } else {
                        塔塔生态操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.阅瞬圈.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues08") == "0") {
                            log("阅瞬圈完成")
                        } else {
                            阅瞬圈操作()
                        }
                    } else {
                        阅瞬圈操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.一起益事.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues26") == "0") {
                            log("一起益事完成")
                        } else {
                            一起益事操作()
                        }
                    } else {
                        一起益事操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.蛋蛋星球.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues27") == "0") {
                            log("蛋蛋星球完成")
                        } else {
                            蛋蛋星球操作()
                        }
                    } else {
                        蛋蛋星球操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.一个圈圈.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues13") == "0") {
                            log("一个圈圈已完成")
                        } else {
                            一个圈圈操作()
                        }
                    } else {
                        一个圈圈操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.智链星途.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues25") == "0") {
                            log("智链星途完成")
                        } else {
                            智链星途操作()
                        }
                    } else {
                        智链星途操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.世梅直播.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues03") == "0") {
                            log("世梅直播已完成")
                        } else {
                            世梅直播操作()
                        }
                    } else {
                        世梅直播操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.享视.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues12") == "0") {
                            log("享视已完成")
                        } else {
                            享视操作()
                        }
                    } else {
                        享视操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.鲸鱼Plus.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues04") == "0") {
                            log("鲸鱼Plus完成")
                        } else {
                            鲸鱼Plus操作()
                        }
                    } else {
                        鲸鱼Plus操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.换换.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues16") == "0") {
                            log("换换完成")
                        } else {
                            换换操作()
                        }
                    } else {
                        换换操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.中熵云.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues17") == "0") {
                            log("中熵云完成")
                        } else {
                            中熵云操作()
                        }
                    } else {
                        中熵云操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.熵信.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues20") == "0") {
                            log("熵信完成")
                        } else {
                            熵信操作()
                        }
                    } else {
                        熵信操作()
                    }
                    sleep(random(500, 800))
                }
                if (ui.灵谷仙境.isChecked()) {
                    if (ir > 1) {
                        if (BDshuju.get("yeues09") == "0") {
                            log("灵谷仙境完成")
                        } else {
                            灵谷仙境操作()
                        }
                    } else {
                        灵谷仙境操作()
                    }
                    sleep(random(500, 800))
                }

                sleep(random(500, 1000))
            }
            JIAQUN()
            console.error("运行完成！！！！！！")
            console.clear()
            floaty.closeAll()
            sleep(1000)
            threads.shutDownAll()
        } catch (err) {
            log("跳过错误")
        }
    });
})

function YCQNW操作() {
    app.launchApp("YCQNW");
    sleep(random(800, 1200))
    console.info(SHIJIAN() + " YCQNW")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("YCQNW")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(800, 1000))
            JDNB(1, text, "视频", "视频", 1500, 1800)
            if (text("每日00:01更新奖励中心").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(2500, 3800))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 20; i++) {
            if (text("已完成").findOnce()) {
                sleep(random(1500, 2500))
                ui.run(() => {
                    ui.YCQNW检测.setText("已完成");
                    ui.YCQNW检测.setTextColor(color)
                    BDshuju.put("yeues01", "0")
                });
            }
            if (text("观看视频").findOnce()) {
                JDNB(1, text, "观看视频", "视频广告", 3000, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("每日00:01更新奖励中心").visibleToUser().findOnce()) {
                        sleep(random(1500, 2500))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            JDNB(1, text, "我的", "我的", 500, 800)
            if (text("我的门票:").visibleToUser().findOnce()) {
                let 余额2 = text("我的门票:").findOnce().parent().child(1)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.YCQNW余额.text(余额);
                    yueesju.put("yeuem01", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("YCQNW")
}
function 星光闪闪操作() {
    app.launchApp("星光闪闪");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 星光闪闪")
    sleep(random(800, 1200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("星光闪闪")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            JDNB(1, text, "AI", "数字空间", 500, 800)
            if (text("戳我进去数字空间～").findOnce()) {
                JDUX(1, "android.widget.ImageView", "11", "1", "0", "人物空间", "100", "100", "1000", "1000", 500, 800)
            }
            if (textContains("活跃值：").findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 20; i++) {
            JDNB(1, idContains, "iv_get_score", "积分", 1500, 1800)
            JDNB(1, text, "点击签到", "点击签到", 500, 800)
            if (textContains("我知道了").findOnce()) {
                JDNB(1, textContains, "我知道了", "我知道了", 1200, 1800)
            }
            if (text("已签到").findOnce()) {
                sleep(random(500, 800))
                break
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 20; i++) {
            if (text("钻石任务完成100%").findOnce()) {
                click(200, 200)
                ui.run(() => {
                    ui.星光闪闪检测.setText("已完成");
                    ui.星光闪闪检测.setTextColor(color)
                    BDshuju.put("yeues22", "0")
                });
                sleep(random(500, 800))
                break
            }
            if (text("做完任务，即可释放当日所有钻石").findOnce()) {
                let losjxm = text("做完任务，即可释放当日所有钻石").findOnce().parent().child(4)
                losjxm.click()
                console.info(SHIJIAN() + " 视频广告")
                sleep(random(3500, 4800))
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (textContains("我知道了").findOnce()) {
                        JDNB(1, textContains, "我知道了", "我知道了", 1500, 2800)
                        sleep(random(1500, 2800))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            if (textContains("活跃值：").findOnce()) {
                let 余额2 = idContains("tv_diamond_count").findOnce()
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.星光闪闪余额.text(余额);
                    yueesju.put("yeuem22", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("星光闪闪")
}
function 人人行操作() {
    app.launchApp("人人行");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 人人行")
    sleep(random(800, 1200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("人人行")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            JDNB(1, idContains, "tuandui", "个人中心", 1000, 1500)
            JDNB(1, text, "今日任务", "今日任务", 1000, 1500)
            if (text("守护礼包").findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 30; i++) {
            if (!text("今日奖励 (6/6)").findOnce()) {
                JDNB(1, text, "去获取", "去获取", 3500, 4500)
                if (text("请完成安全验证").findOnce()) {
                    for (let i = 1; i <= 20; i++) {
                        if (text("请完成安全验证").findOnce()) {
                            console.info(SHIJIAN() + " 请完成验证")
                            sleep(random(3000, 4500))
                        } else {
                            console.info(SHIJIAN() + " 验证完成")
                            break
                        }
                        if (i > 15) {
                            console.info(SHIJIAN() + " 人不在？？？")
                            console.info(SHIJIAN() + " 下个项目")
                            break kie;
                        }
                    }
                }
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    JDNB(2, text, "我知道了", "我知道了", 500, 800, text("恭喜您已完成任务").findOnce())
                    JDNB(2, text, "我知道了", "我知道了", 500, 800, text("免责声明").findOnce())
                    if (text("守护礼包").findOnce()) {
                        sleep(random(2500, 3500))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            } else {
                if (text("今日奖励 (6/6)").findOnce()) {
                    swipe(0, 1000, 800, 1000, 600)
                    sleep(random(1000, 1800))
                    if (text("今日任务").findOnce()) {
                        ui.run(() => {
                            ui.人人行检测.setText("已完成");
                            ui.人人行检测.setTextColor(color)
                            BDshuju.put("yeues24", "0")
                        });
                        break
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            if (text("守护值").visibleToUser().findOnce()) {
                let 余额2 = text("守护值").findOnce().parent().child(0)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.人人行余额.text(余额);
                    yueesju.put("yeuem24", 余额)
                });
                sleep(random(1000, 1200))
                for (let i = 1; i <= 10; i++) {
                    JDNB(1, text, "微矿", "微矿", 1000, 1800)
                    if (text("微矿礼包").findOnce()) {
                        for (let i = 1; i <= 3; i++) {
                            JDNB(1, text, "去获取", "去获取", 1000, 1800)
                            if (text("恭喜您已完成任务").findOnce()) {
                                JDNB(2, text, "我知道了", "我知道了", 500, 800, text("恭喜您已完成任务").findOnce())
                                break;
                            }
                        }
                        break
                    }
                }
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("人人行")
}
function 星星V剧操作() {
    app.launchApp("星星V剧");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 星星V剧")
    sleep(random(800, 1200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("星星V剧")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            if (textContains("公告").findOnce()) {
                JDNB(1, textContains, "确定", "确定", 500, 800)
            }
            if (!textContains("公告").findOnce()) {
                if (text("热播短剧").visibleToUser().findOnce()) {
                    console.info(SHIJIAN() + " 任务页")
                    sleep(random(800, 1200))
                    break
                }
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 20; i++) {
            if (text("热播短剧").findOnce()) {
                JDNB(1, textContains, "集", "看短剧", 1500, 2500)
                for (let i = 1; i <= 65; i++) {
                    console.info(SHIJIAN() + " 等待" + i + "次")
                    sleep(random(2800, 3500))
                    if (!textContains("选集").findOnce()) {
                        for (let isex = 1; isex <= 30; isex++) {
                            if (textContains("选集").findOnce()) {
                                console.info(SHIJIAN() + " 回到短剧")
                                break
                            } else {
                                console.info(SHIJIAN() + " 等回到短剧")
                                sleep(random(2500, 3500))
                            }
                        }
                    }
                    if (text("00:00").findOnce()) {
                        let fdsax = text("00:00").findOnce().parent().child(0)
                        fdsax.click()
                        console.info(SHIJIAN() + " 播放短剧")
                    }
                    if (i >= 63) {
                        console.info(SHIJIAN() + " 三分钟了")
                        swipe(800, 300, 800, 1800, 20)
                        sleep(random(2500, 4500))
                        for (let i = 1; i <= 3; i++) {
                            JDUX(1, "android.widget.TextView", "8", "0", "0", "关闭短剧", "0", "0", "300", "450", 500, 800)
                        }
                        sleep(random(500, 800))
                        JDNB(1, text, "赚星豆", "赚星豆", 1000, 1500)
                        break
                    }
                }
                break
            }
        }
        for (let i = 1; i <= 30; i++) {
            if (text("【已完成】").findOnce()) {
                console.info(SHIJIAN() + " 签到完成？")
            } else {
                if (text("签到处").findOnce()) {
                    JDNB(1, text, "签到处", "签到处", 1000, 1500)
                    if (text("加载中").findOnce()) {
                        sleep(random(2500, 3800))
                        for (let i = 1; i <= 90; i++) {
                            sleep(2000)
                            console.error(SHIJIAN() + " 第" + i + "次检测")
                            if (!text("加载中").findOnce()) {
                                if (text("签到获取贡献值，完成影卷任务").findOnce()) {
                                    sleep(random(1500, 1800))
                                    break
                                }
                            }
                            if (i >= 90) {
                                console.error(SHIJIAN() + " 出现错误...")
                                break kie;
                            }
                        }
                    }
                    kmek(1, "今日签到", "今日签到", 1000, 1500)
                    if (text("签到成功").findOnce()) {
                        for (let i = 1; i <= 3; i++) {
                            JDNB(2, text, "确定", "确定", 500, 800, text("温馨提示").findOnce())
                        }
                        JDUX(1, "android.widget.TextView", "8", "0", "0", "返回福利", "0", "0", "300", "450", 500, 800)
                        sleep(random(500, 1000))
                        console.info(SHIJIAN() + " 签到完成")
                    }
                    if (text("今日已经签到过了").findOnce()) {
                        for (let i = 1; i <= 2; i++) {
                            JDUX(1, "android.widget.TextView", "8", "0", "0", "返回福利", "0", "0", "300", "450", 500, 800)
                            sleep(random(500, 1000))
                        }
                        console.info(SHIJIAN() + " 签到完成")
                    }
                }
            }
            let kseun = textContains("【已完成】").find().size()
            if (kseun >= 2) {
                ui.run(() => {
                    ui.星星V剧检测.setText("已完成");
                    ui.星星V剧检测.setTextColor(color)
                    BDshuju.put("yeues18", "0")
                });
                sleep(random(500, 800))
                break
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 20; i++) {
            if (text("星豆数量(个) >").findOnce()) {
                let 余额2 = text("星豆数量(个) >").findOnce().parent().child(1)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.星星V剧余额.text(余额);
                    yueesju.put("yeuem18", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            } else {


            }
            sleep(random(500, 800))
        }
    }
    keeew.interrupt()
    keshk.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("星星V剧")
}
function 世界庄园操作() {
    app.launchApp("世界庄园");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 世界庄园")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("世界庄园")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            if (desc("最新公告").findOnce()) {
                JDUX(1, "android.widget.ImageView", "9", "0", "1", "关闭公告", "0", "1600", "1200", "2300", 500, 800)
            }
            if (desc("确定加入").findOnce()) {
                click(200, 200)
            }
            JDUX(1, "android.widget.ImageView", "11", "0", "12", "绿色农场-1", "0", "1600", "1200", "2300", 500, 800)
            JDUX(1, "android.widget.ImageView", "11", "0", "11", "绿色农场-2", "0", "1600", "1200", "2300", 500, 800)
            if (desc("实名").findOnce() || desc("一级").findOnce()) {
                console.info(SHIJIAN() + " 到达任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 20; i++) {
            if (desc("确定加入").findOnce()) {
                click(200, 200)
            }
            if (desc("实名").findOnce() || desc("一级").findOnce()) {
                JDUX(1, "android.widget.ImageView", "12", "0", "0", "收获", "500", "1500", "1200", "2300", 500, 800)
                sleep(random(500, 800))
                if (descContains("今日已收获完成").findOnce()) {
                    ui.run(() => {
                        ui.世界庄园检测.setText("已完成");
                        ui.世界庄园检测.setTextColor(color)
                        BDshuju.put("yeues14", "0")
                    });
                    sleep(random(500, 800))
                    break
                }
            }
            if (desc("完成任务可收获果实").findOnce()) {
                if (!desc("收获果实任务 3/3").findOnce()) {
                    JDNB(1, desc, "去完成", "视频任务", 1500, 2500)
                    if (desc("确定").findOnce()) {
                        JDNB(1, desc, "确定", "视频广告", 3500, 4500)
                    } else {
                        sleep(random(3000, 3500))
                        for (let i = 1; i <= 50; i++) {
                            if (text("请完成安全验证").findOnce()) {
                                console.error(SHIJIAN() + " 请完成验证")
                                sleep(random(1500, 2000))
                                if (i >= 48) {
                                    console.error(SHIJIAN() + " 人不在？")
                                    break kie
                                }
                            } else {
                                sleep(random(500, 800))
                                break
                            }
                        }
                        if (desc("确定").findOnce()) {
                            JDNB(1, desc, "确定", "视频广告", 3500, 4500)
                        }
                    }
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (desc("完成任务可收获果实").findOnce()) {
                            sleep(random(1500, 2500))
                            if (desc("收获果实任务 3/3").findOnce()) {
                                swipe(0, 1000, 800, 1000, 600)
                            }
                            sleep(random(4500, 5500))
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                } else {
                    if (desc("收获果实任务 3/3").findOnce()) {
                        swipe(0, 1000, 800, 1000, 600)
                        sleep(random(1500, 2500))
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            if (desc("实名").findOnce()) {
                let 余额2 = className("android.widget.Button").depth("11").drawingOrder("0").indexInParent("2").findOnce()
                let 余额 = 余额2.desc()
                ui.run(() => {
                    ui.世界庄园余额.text(余额);
                    yueesju.put("yeuem14", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
            sleep(random(500, 800))
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("世界庄园")
}
function 优伴心诚操作() {
    app.launchApp("优伴心诚");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 优伴心诚")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("优伴心诚")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            if (text("U卡任务").findOnce()) {
                JDNB(1, text, "U卡任务", "任务页", 1000, 1500)
                sleep(random(800, 1200))
            }
            if (text("公告").findOnce()) {
                JDNB(1, text, "我已知道", "我已知道", 1000, 1500)
                sleep(random(800, 1200))
            }
            if (text("完成视频任务，获得U钻").findOnce()) {
                console.info(SHIJIAN() + " 到达任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 30; i++) {
            if (text("视频任务 (5/5)").findOnce()) {
                ui.run(() => {
                    ui.优伴心诚检测.setText("已完成");
                    ui.优伴心诚检测.setTextColor(color)
                    BDshuju.put("yeues11", "0")
                });
                sleep(random(500, 800))
                break
            } else {
                if (text("去观看").findOnce()) {
                    JDNB(1, text, "去观看", "看视频", 1500, 2500)
                    if (textContains("验证码").findOnce()) {
                        for (let i = 1; i <= 50; i++) {
                            if (textContains("验证码").exists()) {
                                console.info(SHIJIAN() + " 请完成验证")
                                sleep(random(1500, 2500))
                            } else {
                                sleep(random(1500, 2500))
                                break
                            }
                            if (i >= 50) {
                                console.info(SHIJIAN() + " 人不在?")
                                break kie
                            }
                        }
                    }
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("完成视频任务，获得U钻").findOnce()) {
                            sleep(random(800, 1200))
                            break;
                        }
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 20; i++) {
            if (text("U钻余额").findOnce()) {
                let 余额2 = text("U钻余额").findOnce().parent().child(1)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.优伴心诚余额.text(余额);
                    yueesju.put("yeuem11", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
            sleep(random(500, 800))
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("优伴心诚")
}
function 万象纪元操作() {
    app.launchApp("万象纪元");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 万象纪元")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("万象纪元")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            if (kmok("2", "系统公告")) {
                click(200, 200)
            }
            if (kmok("1", "我的")) {
                let result = gmlkit.ocr(captureScreen(), "zh")
                let managerBtn = result.find(3, e => (e.text == "我的"))
                if (managerBtn != null) {
                    let wenbkoj = managerBtn.bounds.left + random(1, 5), wenbkhg = managerBtn.bounds.top + random(-120, -150)
                    click(wenbkoj, wenbkhg)
                    console.info(SHIJIAN() + " 任务页-1")
                    sleep(random(1500, 1800))
                }
            }
            JDNB(1, desc, "探索寻宝", "任务页-2", 1500, 1800)
            JDNB(1, desc, "查看寻宝进展", "任务页-3", 2500, 3500)
            if (descContains("未完成")) {
                for (let i = 1; i <= 20; i++) {
                    JDNB(1, descContains, "未完成", "点开任务", 1000, 1500)
                    if (desc("去完成").visibleToUser().findOnce()) {
                        break
                    }
                }
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 30; i++) {
            if (descContains("未完成").findOnce()) {
                if (desc("去完成").findOnce()) {
                    JDNB(1, desc, "去完成", "看视频", 3500, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (desc("寻宝进展").findOnce()) {
                            sleep(random(1000, 1500))
                            break;
                        }
                    }
                }
            } else {
                if (desc("寻宝\n第 1 个标签，共 2 个").findOnce()) {
                    if (!descContains("未完成").findOnce()) {
                        ui.run(() => {
                            ui.万象纪元检测.setText("已完成");
                            ui.万象纪元检测.setTextColor(color)
                            BDshuju.put("yeues06", "0")
                        });
                        sleep(random(500, 800))
                        break
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 20; i++) {
            if (desc("寻宝进展").findOnce()) {
                for (let i = 1; i <= 3; i++) {
                    swipe(0, 1000, 800, 1000, 500)
                    sleep(random(1000, 1200))
                    if (desc("我的基地").findOnce()) {
                        sleep(random(500, 800))
                        break
                    }
                }
            }
            JDNB(1, desc, "我的基地", "余额页", 500, 800)
            swipe(500, 300, 200, 1600, 500)
            if (descContains("元石").findOnce()) {
                let 余额2 = descContains("元石").findOnce()
                let 余额1 = 余额2.desc()
                var 余额 = 余额1.slice(0, 3)
                ui.run(() => {
                    ui.万象纪元余额.text(余额);
                    yueesju.put("yeuem06", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
            sleep(random(500, 800))
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("万象纪元")
}
function 食领味来操作() {
    app.launchApp("食领味来");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 食领味来")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("食领味来")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            JDNB(1, text, "我知道了", "我知道了", 500, 800)
            JDNB(1, text, "任务", "任务中心", 500, 800)
            if (kmok("2", "假期")) {
                click(200, 200)
            }
            if (text("本地生活").findOnce()) {
                console.info(SHIJIAN() + " 到达任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 30; i++) {
            let ekdt = text("已完成").find().size()
            if (ekdt >= 7) {
                ui.run(() => {
                    ui.食领味来检测.setText("已完成");
                    ui.食领味来检测.setTextColor(color)
                    BDshuju.put("yeues05", "0")
                });
                sleep(random(500, 800))
                break
            } else {
                if (text("立即打卡").findOnce()) {
                    JDNB(1, text, "立即打卡", "看视频", 3500, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("已完成全部任务").findOnce()) {
                            sleep(random(1000, 1500))
                            JDNB(1, text, "立即领取", "收益领取", 500, 800)
                            break
                        }
                        if (text("继续打卡").findOnce()) {
                            sleep(random(500, 800))
                            click(200, 200)
                        }
                        if (text("打卡赚任务券").findOnce()) {
                            break;
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
            }
            JDNB(1, text, "立即领取", "收益领取", 500, 800)
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            if (text("任务规则").findOnce()) {
                let 余额2 = text("任务规则").findOnce().parent().child(0)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.食领味来余额.text(余额);
                    yueesju.put("yeuem05", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
            sleep(random(500, 800))
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("食领味来")
}

function 乐享操作() {
    app.launchApp("乐享");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 乐享")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("乐享")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            JDNB(1, descContains, "积分墙", "积分墙", 1500, 2500)
            if (descContains("三级阶段").findOnce()) {
                console.info(SHIJIAN() + " 到达任务页")
                sleep(random(1500, 1800))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        kmxpos: for (let i = 1; i <= 100; i++) {
            if (kede("1", "参与")) {
                for (let i = 1; i <= 10; i++) {
                    kedk(1, "参与", "上墙", 500, 800)
                    if (kede("2", "不足")) {
                        console.info(SHIJIAN() + " 完成了")
                        ui.run(() => {
                            ui.乐享检测.setText("已完成");
                            ui.乐享检测.setTextColor(color)
                            BDshuju.put("yeues15", "0")
                        });
                        break kmxpos
                    }
                    if (kede("2", "上一个")) {
                        swipe(500, 300, 200, 1600, 500)
                    }
                    if (desc("观看广告后，即可完成任务!").findOnce() || desc("恭喜你获得奖励!").findOnce()) {
                        break
                    }
                }
                sleep(random(1500, 1800))
                if (desc("观看广告后，即可完成任务!").findOnce()) {
                    JDNB(1, desc, "看广告", "看广告", 3500, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (desc("观看成功").findOnce()) {
                            if (desc("恭喜你获得奖励!").findOnce()) {
                                sleep(random(1500, 1800))
                                break
                            }
                        }
                        if (descContains("级阶段").findOnce()) {
                            sleep(random(1500, 1800))
                            break
                        }
                        JDNB(1, descContains, "积分墙", "积分墙", 1500, 2500)
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
                if (desc("恭喜你获得奖励!").findOnce()) {
                    sleep(random(2500, 3500))
                    JDUX(1, "android.view.View", "8", "0", "2", "关闭-ok-2", "0", "0", "1500", "1500", 500, 800)
                    JDUX(1, "android.view.View", "8", "0", "1", "关闭-ok-1", "0", "0", "1500", "1500", 500, 800)
                }
            } else {
                sleep(random(2000, 3800))
                if (descContains("级阶段").visibleToUser().findOnce()) {
                    swipe(200, 1500, 200, 700, 500)
                    sleep(random(500, 800))
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            JDNB(1, desc, "我的\nTab 5 of 5", "我的", 1000, 1500)
            if (desc("我的积分").findOnce()) {
                let 余额2 = desc("我的积分").findOnce().parent().child(2)
                let 余额 = 余额2.desc()
                ui.run(() => {
                    ui.乐享余额.text(余额);
                    yueesju.put("yeuem15", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("乐享")
}
function 玉视界操作() {
    app.launchApp("玉视界");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 玉视界")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("玉视界")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            if (textContains("已连续签到").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 到达任务页")
                sleep(random(800, 1200))
                break
            }
            if (text("任务专区").findOnce()) {
                JDNB(1, text, "任务专区", "任务专区", 1000, 1500)
            }
            if (text("popx").findOnce()) {
                JDNB(1, text, "popx", "关闭公告", 1000, 1500)
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            if (text("立即签到").findOnce()) {
                JDNB(1, text, "立即签到", "签到视频", 3500, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("已签到").findOnce()) {
                        sleep(random(800, 1200))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie
                    }
                }
            }
            if (text("去完成").findOnce()) {
                JDNB(1, text, "去完成", "视频广告", 3500, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (textContains("完成即可获得贡献值").findOnce()) {
                        sleep(random(1200, 1800))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie
                    }
                }
            }
            if (text("已完成").findOnce()) {
                if (text("已签到").findOnce()) {
                    for (let i = 1; i <= 3; i++) {
                        for (let i = 1; i <= 3; i++) {
                            if (textContains("完成即可获得贡献值").findOnce()) {
                                swipe(0, 1000, 800, 1000, 600)
                                sleep(random(800, 1200))
                            } else {
                                break
                            }
                        }
                    }
                    break
                }
            }
        }
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            JDNB(1, text, "绿色积分", "绿色积分", 1000, 1500)
            JDNB(1, text, "领取今日收益", "领取收益", 1000, 1500)
            if (text("已领取").findOnce()) {
                ui.run(() => {
                    ui.玉视界检测.setText("已完成");
                    ui.玉视界检测.setTextColor(color)
                    BDshuju.put("yeues02", "0")
                });
                let 余额1 = text("今日收益(个)").findOnce().parent().child(2)
                let 余额2 = 余额1.text()
                var 余额 = 余额2.slice(0, -4)
                ui.run(() => {
                    ui.玉视界余额.text(余额);
                    yueesju.put("yeuem02", 余额)
                });
                break
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("玉视界")
}
function 塔塔生态操作() {
    app.launchApp("塔塔生态");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 塔塔生态")
    sleep(random(2800, 3200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("塔塔生态")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            if (descContains("公告").findOnce()) {
                if (desc("查看详情").findOnce()) {
                    JDUX(1, "android.view.View", "8", "0", "3", "关闭公告", "0", "1200", "800", "1900", 500, 800)
                }
            }
            if (descContains("项目精选").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            let lompk = descContains("开盘").visibleToUser().find().size()
            if (lompk <= 2) {
                swipe(200, 1500, 200, 1000, 500)
                sleep(random(500, 800))
            } else {
                let lompm = descContains("开盘").visibleToUser().find()
                for (let iex = 0; iex <= 2; iex++) {
                    sleep(random(500, 800))
                    lompm[iex].click()
                    console.info(SHIJIAN() + " 点击项目")
                    sleep(random(3500, 4500))
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (descContains("项目详情").visibleToUser().findOnce()) {
                            sleep(random(1500, 2500))
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                    for (let i = 1; i <= 15; i++) {
                        sleep(random(1200, 1500))
                        console.info(SHIJIAN() + " 等待时间")
                    }
                    swipe(0, 1000, 800, 1000, 600)
                    sleep(random(1500, 1800))
                }
                break
            }
            sleep(random(500, 800))
        }
        // for (let i = 1; i <= 10; i++) {
        //     for (let i = 1; i <= 2; i++) {
        //         JDNB(1, descContains, "周人气榜", "周人气榜", 1000, 1500)
        //     }
        //     if (descContains("开盘").findOnce()) {
        //         let lompm = descContains("开盘").visibleToUser().find()
        //         for (let iex = 0; iex <= 2; iex++) {
        //             sleep(random(500, 800))
        //             lompm[iex].click()
        //             console.info(SHIJIAN() + " 点击项目")
        //             sleep(random(3500, 4500))
        //             for (let i = 1; i <= 90; i++) {
        //                 sleep(2000)
        //                 console.error(SHIJIAN() + " 第" + i + "次检测")
        //                 if (descContains("项目详情").visibleToUser().findOnce()) {
        //                     sleep(random(1500, 2500))
        //                     break
        //                 }
        //                 if (i >= 90) {
        //                     console.error(SHIJIAN() + " 出现错误...")
        //                     break kie;
        //                 }
        //             }
        //             for (let i = 1; i <= 15; i++) {
        //                 sleep(random(1200, 1500))
        //                 console.info(SHIJIAN() + " 等待时间")
        //             }
        //             swipe(0, 1000, 800, 1000, 600)
        //             sleep(random(1500, 1800))
        //         }
        //         break
        //     }
        //     sleep(random(500, 800))
        // }
        for (let i = 1; i <= 10; i++) {
            JDNB(1, desc, "每日签到", "每日签到", 1500, 1800)
            if (text("每日首次参与转盘游戏").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 广告页")
                sleep(random(800, 1200))
                break
            } else {
                swipe(0, 1000, 800, 1000, 600)
                sleep(random(1500, 1800))
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            if (descContains("立即领取").findOnce()) {
                for (let i = 1; i <= 2; i++) {
                    JDNB(1, descContains, "立即领取", "立即领取", 1200, 1800)
                    JDNB(1, desc, "立刻领取", "立刻领取", 1200, 1800)
                }
            } else {
                let DSGE = descContains("已完成").visibleToUser().find().size()
                if (DSGE >= 2) {
                    sleep(random(1500, 2500))
                    break
                } else {
                    JDNB(1, descContains, "去完成", "去完成", 3000, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("每日首次参与转盘游戏").visibleToUser().findOnce()) {
                            sleep(random(2500, 3500))
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            if (!desc("晶塔").visibleToUser().findOnce()) {
                swipe(0, 1000, 800, 1000, 600)
                sleep(random(500, 800))
            }
            JDNB(1, desc, "晶塔", "晶塔", 1000, 1500)
            if (descContains("参与闯塔").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 闯塔页")
                break
            }
        }
        for (let i = 1; i <= 15; i++) {
            if (kmok("1", "参与闯塔")) {
                kmek("1", "参与闯塔", "上墙", 1000, 1500)
            }
            if (desc("是否确定参与?").findOnce()) {
                JDNB(1, desc, "确定", "确定", 800, 1200)
            }
            if (kmok("2", "不足")) {
                ui.run(() => {
                    ui.塔塔生态检测.setText("已完成");
                    ui.塔塔生态检测.setTextColor(color)
                    BDshuju.put("yeues07", "0")
                });
                sleep(random(500, 800))
                break
            }
            let hmkos = descContains("已参与").find().size()
            if (hmkos >= 4) {
                swipe(200, 600, 200, 200, 500)
                sleep(random(800, 1200))
            }
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            JDNB(1, desc, "我的", "我的", 500, 800)
            if (descContains("备用晶石").visibleToUser().findOnce()) {
                let 余额2 = descContains("备用晶石").findOnce().parent().child(1)
                let 余额1 = 余额2.desc()
                var 余额 = 余额1.slice(0, -3)
                ui.run(() => {
                    ui.塔塔生态余额.text(余额);
                    yueesju.put("yeuem07", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keeew.interrupt()
    keshk.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("塔塔生态")
}
function 阅瞬圈操作() {
    app.launchApp("阅瞬圈");
    sleep(random(800, 1200))
    console.info(SHIJIAN() + " 阅瞬圈")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("阅瞬圈")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(800, 1000))
            JDNB(1, text, "阅享中心", "阅享中心", 500, 800)
            if (text("世界观影者").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(1500, 1800))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 10; i++) {
            if (!idContains("enjoy_start_view").findOnce()) {
                break
            }
            for (let i = 1; i <= 6; i++) {
                let sfsxl = "welfare_energy_" + i
                if (idContains(sfsxl).findOnce()) {
                    JDNB(1, idContains, sfsxl, "点击广告", 1500, 1800)
                    if (text("距离下次开启时间").findOnce()) {
                        for (let ins = 0; ins <= 25; ins++) {
                            if (text("距离下次开启时间").exists()) {
                                console.info(SHIJIAN() + " 等待...")
                                sleep(random(2000, 3000))
                            } else {
                                break;
                            }
                        }
                    }
                    if (text("浏览视频").findOnce()) {
                        JDNB(1, text, "浏览视频", "视频广告", 3000, 4500)
                        for (let i = 1; i <= 90; i++) {
                            sleep(2000)
                            console.error(SHIJIAN() + " 第" + i + "次检测")
                            if (text("世界观影者").visibleToUser().findOnce()) {
                                sleep(random(1500, 2500))
                                break
                            }
                            if (i >= 90) {
                                console.error(SHIJIAN() + " 出现错误...")
                                break kie;
                            }
                        }
                    }
                }
            }
        }
        for (let i = 1; i <= 3; i++) {
            if (idContains("enjoy_start_view").findOnce()) {
                JDNB(1, idContains, "enjoy_start_view", "点击启动", 1000, 1500)
                if (text("浏览视频").findOnce()) {
                    JDNB(1, text, "浏览视频", "视频广告", 3000, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("世界观影者").visibleToUser().findOnce()) {
                            sleep(random(1500, 2500))
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
            } else {
                if (!kmok("2", "点击")) {
                    ui.run(() => {
                        ui.阅瞬圈检测.setText("已完成");
                        ui.阅瞬圈检测.setTextColor(color)
                        BDshuju.put("yeues08", "0")
                    });
                    break
                }
                sleep(random(1500, 2500))
            }
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            JDNB(1, text, "我的", "我的", 500, 800)
            if (textContains("≈￥").visibleToUser().findOnce()) {
                let 余额2 = textContains("≈￥").findOnce()
                let 余额1 = 余额2.text()
                let 余额 = 余额1.slice(2, 8)
                ui.run(() => {
                    ui.阅瞬圈余额.text(余额);
                    yueesju.put("yeuem08", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("阅瞬圈")
}
function 一起益事操作() {
    app.launchApp("一起益事");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 一起益事")
    sleep(random(800, 1200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("一起益事")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            JDNB(1, text, "福利中心", "福利中心", 1000, 1500)
            if (text("我的资产").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        kmhhd: for (let i = 1; i <= 25; i++) {
            if (kmok(1, "168")) {
                kmek("1", "168", "去看广告", 500, 800)
                konono: for (let i = 1; i <= 20; i++) {
                    if (text("距离下次开启时间").findOnce()) {
                        for (let ins = 0; ins <= 25; ins++) {
                            if (text("距离下次开启时间").exists()) {
                                let sjssp1 = text("距离下次开启时间").findOnce().parent().child(2)
                                let sjssp2 = sjssp1.text()
                                let sjssp3 = sjssp2.slice(0, 2)
                                let sjssp4 = sjssp2.slice(3, 5)
                                if (sjssp3 > 0) {
                                    JDNB(1, text, "知道了", "完成任务", 500, 800)
                                    break kmhhd;
                                } else {
                                    if (sjssp4 > 0) {
                                        JDNB(1, text, "知道了", "完成任务", 500, 800)
                                        break kmhhd;
                                    } else {
                                        for (let ins = 0; ins <= 25; ins++) {
                                            if (text("距离下次开启时间").exists()) {
                                                console.info(SHIJIAN() + " 等待...")
                                                sleep(random(2000, 3000))
                                            } else {
                                                break;
                                            }
                                        }
                                    }
                                }
                            }
                            break
                        }
                    } else {
                        JDNB(1, text, "浏览视频", "视频广告", 3000, 4500)
                        for (let i = 1; i <= 90; i++) {
                            sleep(2000)
                            console.error(SHIJIAN() + " 第" + i + "次检测")
                            if (text("我的资产").visibleToUser().findOnce()) {
                                sleep(random(1500, 2500))
                                break konono;
                            }
                            if (kmok(1, "168")) {
                                kmek("1", "168", "去看广告", 500, 800)
                            }
                            if (i >= 90) {
                                console.error(SHIJIAN() + " 出现错误...")
                                break kie;
                            }
                        }
                    }
                }
            } else {
                if (kmok(1, "168")) {
                } else {
                    if (text("开始启动").findOnce()) {
                        JDNB(1, text, "开始启动", "启动广告", 1000, 1500)
                        JDNB(1, text, "浏览视频", "启动视频", 3000, 4500)
                        for (let i = 1; i <= 90; i++) {
                            sleep(2000)
                            console.error(SHIJIAN() + " 第" + i + "次检测")
                            if (text("我的资产").visibleToUser().findOnce()) {
                                sleep(random(1500, 2500))
                                ui.run(() => {
                                    ui.一起益事检测.setText("已完成");
                                    ui.一起益事检测.setTextColor(color)
                                    BDshuju.put("yeues26", "0")
                                });
                                break kmhhd;
                            }
                            if (i >= 90) {
                                console.error(SHIJIAN() + " 出现错误...")
                                break kie;
                            }
                        }
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            JDNB(1, text, "我的", "我的", 500, 800)
            if (textContains("≈￥").visibleToUser().findOnce()) {
                let 余额2 = textContains("≈￥").findOnce()
                let 余额1 = 余额2.text()
                let 余额 = 余额1.slice(2, 8)
                ui.run(() => {
                    ui.一起益事余额.text(余额);
                    yueesju.put("yeuem26", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("一起益事")
}
function 蛋蛋星球操作() {
    app.launchApp("蛋蛋星球");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 蛋蛋星球")
    sleep(random(800, 1200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("蛋蛋星球")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            if (desc("蛋蛋主题").findOnce()) {
                let kdems = desc("蛋蛋主题").findOnce()
                click(kdems.bounds().centerX(), kdems.bounds().centerY())
                console.info(SHIJIAN() + " 蛋蛋主题")
                sleep(random(1500, 2500))
            }
            if (desc("能量值(个)").findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(800, 1200))
                break
            }
            JDNB(1, desc, "我知道了", "我知道了", 500, 1500)
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        koopm: for (let i = 1; i <= 30; i++) {
            sleep(random(500, 800))
            if (!desc("24小时签到一次").findOnce()) {
                if (desc("活跃值(个)").visibleToUser().findOnce()) {
                    console.info(SHIJIAN() + " 没到时间")
                    break koopm;
                }
            }
            if (desc("24小时签到一次").findOnce()) {
                let gfdgrx = depth("14").drawingOrder("0").indexInParent("0").findOnce()
                click(gfdgrx.bounds().centerX(), gfdgrx.bounds().centerY())
                console.info(SHIJIAN() + " 点蛋蛋")
                sleep(random(1000, 1500))
                if (desc("浏览视频").findOnce()) {
                    let gmklsx = desc("浏览视频").findOnce()
                    click(gmklsx.bounds().centerX(), gmklsx.bounds().centerY())
                    console.info(SHIJIAN() + " 点击视频")
                    sleep(random(4500, 5500))
                    if (desc("浏览视频").findOnce()) {
                        for (let i = 1; i <= 10; i++) {
                            if (!desc("浏览视频").findOnce()) {
                                break;
                            } else {
                                let gmklsx = desc("浏览视频").findOnce()
                                click(gmklsx.bounds().centerX(), gmklsx.bounds().centerY())
                                console.info(SHIJIAN() + " 点击视频")
                                sleep(random(4500, 5500))
                            }
                            if (i >= 5) {
                                console.info(SHIJIAN() + " 卡了？")
                                break kie
                            }
                        }
                    }
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (kmok("1", "蛋蛋能量")) {
                            sleep(random(2500, 3500))
                            if (!desc("24小时签到一次").findOnce()) {
                                ui.run(() => {
                                    ui.蛋蛋星球检测.setText("已完成");
                                    ui.蛋蛋星球检测.setTextColor(color)
                                    BDshuju.put("yeues27", "0")
                                });
                                break koopm;
                            }
                            break
                        }
                        if (desc("蛋蛋主题").findOnce()) {
                            if (!desc("星球共识者").findOnce()) {
                                let kdems = desc("蛋蛋主题").findOnce()
                                click(kdems.bounds().centerX(), kdems.bounds().centerY())
                                console.info(SHIJIAN() + " 蛋蛋主题")
                                sleep(random(4500, 5500))
                            }
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                } else {
                    if (desc("还需等待").findOnce()) {
                        for (let ins = 0; ins <= 25; ins++) {
                            if (desc("还需等待").exists()) {
                                console.info(SHIJIAN() + " 等待...")
                                sleep(random(2000, 3000))
                            } else {
                                break;
                            }
                        }
                    }
                }
            }
            if (!desc("活跃值(个)").visibleToUser().findOnce()) {
                for (let ins = 0; ins <= 25; ins++) {
                    if (desc("活跃值(个)").visibleToUser().findOnce()) {
                        break;
                    } else {
                        console.info(SHIJIAN() + " 等待页面")
                        sleep(random(2000, 3000))
                        if (desc("蛋蛋主题").findOnce()) {
                            if (!desc("星球共识者").findOnce()) {
                                let kdems = desc("蛋蛋主题").findOnce()
                                click(kdems.bounds().centerX(), kdems.bounds().centerY())
                                console.info(SHIJIAN() + " 蛋蛋主题")
                                sleep(random(4500, 5500))
                            }
                        }
                    }
                }
            }
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            JDNB(1, desc, "会员中心", "会员中心", 500, 800)
            if (descContains("≈￥").visibleToUser().findOnce()) {
                let 余额2 = descContains("≈￥").visibleToUser().findOnce()
                let 余额1 = 余额2.desc()
                var 余额3 = 余额1.match(/≈￥([0-9\.]+)/);
                if (余额3 && 余额3[1]) {
                    var 余额e = parseFloat(余额3[1]);
                    var 余额 = 余额e.toFixed(4);
                    ui.run(() => {
                        ui.蛋蛋星球余额.text(余额);
                        yueesju.put("yeuem27", 余额)
                    });
                    sleep(random(1000, 1200))
                    console.error(SHIJIAN() + " 程序完成")
                    break;
                }
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("蛋蛋星球")
}
function 一个圈圈操作() {
    app.launchApp("一个圈圈");
    sleep(random(800, 1200))
    console.info(SHIJIAN() + " 一个圈圈")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("一个圈圈")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(800, 1000))
            if (text("运行时间").findOnce()) {
                JDUX(1, "android.widget.ImageView", "8", "1", "0", "任务页", "400", "2100", "700", "2400", 800, 1000)
            }
            if (text("绿色能量(个)").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(1500, 1800))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        kmhhd: for (let i = 1; i <= 25; i++) {
            if (text("168").findOnce()) {
                kmek("1", "168", "去看广告", 500, 800)
                konono: for (let i = 1; i <= 20; i++) {
                    if (text("距离下次开启时间").findOnce()) {
                        for (let ins = 0; ins <= 25; ins++) {
                            if (text("距离下次开启时间").exists()) {
                                let sjssp1 = text("距离下次开启时间").findOnce().parent().child(2)
                                let sjssp2 = sjssp1.text()
                                let sjssp3 = sjssp2.slice(0, 2)
                                let sjssp4 = sjssp2.slice(3, 5)
                                if (sjssp3 > 0) {
                                    JDNB(1, text, "知道了", "完成任务", 500, 800)
                                    break konono;
                                } else {
                                    if (sjssp4 > 0) {
                                        JDNB(1, text, "知道了", "完成任务", 500, 800)
                                        break konono;
                                    } else {
                                        for (let ins = 0; ins <= 25; ins++) {
                                            if (text("距离下次开启时间").exists()) {
                                                console.info(SHIJIAN() + " 等待...")
                                                sleep(random(2000, 3000))
                                            } else {
                                                break;
                                            }
                                        }
                                    }
                                }
                            }
                            break
                        }
                    } else {
                        JDNB(1, text, "浏览视频", "视频广告", 3000, 4500)
                        for (let i = 1; i <= 90; i++) {
                            sleep(2000)
                            console.error(SHIJIAN() + " 第" + i + "次检测")
                            if (text("绿色能量(个)").visibleToUser().findOnce()) {
                                sleep(random(1500, 2500))
                                break konono;
                            }
                            if (kmok(2, "绿色能量")) {
                                JDNB(1, text, "浏览视频", "视频广告-2", 300, 500)
                            }
                            if (i >= 90) {
                                console.error(SHIJIAN() + " 出现错误...")
                                break kie;
                            }
                        }
                    }
                }
            } else {
                if (kmok(1, "168")) {
                } else {
                    JDUX(1, "android.widget.ImageView", "12", "1", "0", "点击启动", "330", "1800", "700", "2100", 2500, 3800)
                    if (text("浏览视频").findOnce()) {
                        JDNB(1, text, "浏览视频", "视频广告", 3000, 4500)
                        for (let i = 1; i <= 90; i++) {
                            sleep(2000)
                            console.error(SHIJIAN() + " 第" + i + "次检测")
                            if (text("绿色能量(个)").visibleToUser().findOnce()) {
                                sleep(random(1500, 2500))
                                ui.run(() => {
                                    ui.一个圈圈检测.setText("已完成");
                                    ui.一个圈圈检测.setTextColor(color)
                                    BDshuju.put("yeues13", "0")
                                });
                                break kmhhd;
                            }
                            if (kmok(2, "绿色能量")) {
                                JDNB(1, text, "浏览视频", "视频广告-2", 300, 500)
                            }
                            if (i >= 90) {
                                console.error(SHIJIAN() + " 出现错误...")
                                break kie;
                            }
                        }
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            JDNB(1, text, "我的", "我的", 500, 800)
            if (textContains("≈￥").visibleToUser().findOnce()) {
                let 余额2 = textContains("≈￥").findOnce()
                let 余额1 = 余额2.text()
                let 余额 = 余额1.slice(2, 8)
                ui.run(() => {
                    ui.一个圈圈余额.text(余额);
                    yueesju.put("yeuem13", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("一个圈圈")
}
function 智链星途操作() {
    app.launchApp("智链星途");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 智链星途")
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            JDNB(1, text, "我的", "我的", 500, 1000)
            JDNB(1, text, "星途阶梯", "星途阶梯", 500, 1000)
            if (text("1级阶梯").findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        var lpommhk = 1
        for (let i = 1; i <= 50; i++) {
            for (let ikop = 1; ikop <= 5; ikop++) {
                if (text("参与").visibleToUser().findOnce()) {
                    JDNB(1, text, "参与", "上墙", 1000, 1500)
                    sleep(random(2000, 3500))
                    if (textContains("选择积分类型").findOnce()) {
                        for (let i = 1; i <= 3; i++) {
                            if (text("通用积分").findOnce()) {
                                let ld90snj = text("通用积分").findOnce()
                                click(ld90snj.bounds().left + random(5, 8), ld90snj.bounds().top - random(2, 5))
                                console.info(SHIJIAN() + " 点击积分")
                                sleep(random(1200, 1500))
                                let sfsdw = textContains("选择积分类型").findOnce().parent().child(3).child(0).child(0)
                                click(sfsdw.bounds().left + random(25, 58), sfsdw.bounds().top + random(10, 25))
                                sleep(random(1200, 1500))
                                if (text("是否确认参与？").findOnce()) {
                                    break
                                }
                            }
                        }
                        if (text("是否确认参与？").findOnce()) {
                            JDNB(1, text, "确认", "确认参与", 2500, 3500)
                            sleep(random(2500, 3500))
                        }
                        if (text("通用积分").findOnce()) {
                            console.info(SHIJIAN() + " 积分不足？")
                            lpommhk++
                            sleep(random(500, 1000))
                            break;
                        }
                    }
                } else {
                    swipe(200, 800, 200, 200, 500)
                    sleep(random(800, 1200))
                }
            }
            if (lpommhk >= 3) {
                console.info(SHIJIAN() + " 完成")
                sleep(random(500, 800))
                ui.run(() => {
                    ui.智链星途检测.setText("已完成");
                    ui.智链星途检测.setTextColor(color)
                    BDshuju.put("yeues25", "0")
                });
                break
            }
        }
        for (let i = 1; i <= 10; i++) {
            if (text("通用积分参与").findOnce()) {
                let 余额2 = text("通用积分参与").findOnce().parent().child(3)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.智链星途余额.text(余额);
                    yueesju.put("yeuem25", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
            sleep(random(500, 800))
        }
    }
    sleep(random(800, 1200))
    GUABGBAPP("智链星途")
}
function 世梅直播操作() {
    app.launchApp("世梅直播");
    sleep(random(800, 1200))
    console.info(SHIJIAN() + " 世梅直播")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("世梅直播")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            kmek(2, "福利", "广告页", 500, 800)
            if (text("免手续费").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 到达任务")
                sleep(random(800, 1200))
                break
            } else {
                JDNB(1, text, "福利", "广告页", 1000, 1500)
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 20; i++) {
            if (text("已签到").findOnce()) {
                console.info(SHIJIAN() + " 签到完成")
                swipe(200, 1800, 200, 500, 800)
                sleep(random(800, 1200))
                break;
            }
            if (textContains("签到").visibleToUser().findOnce()) {
                JDNB(1, textContains, "签到", "签到广告", 3000, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("免手续费").visibleToUser().findOnce()) {
                        sleep(random(1500, 2500))
                        break
                    }
                    if (text("金币奖励").visibleToUser().findOnce()) {
                        JDNB(1, text, "确定", "确定", 500, 1000)
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
            if (text("金币奖励").visibleToUser().findOnce()) {
                JDNB(1, text, "确定", "确定", 500, 1000)
            }
            sleep(random(800, 1200))
        }
        for (let i = 1; i <= 30; i++) {
            let hhh = text("已完成").find().size()
            if (hhh >= 3) {
                ui.run(() => {
                    ui.世梅直播检测.setText("已完成");
                    ui.世梅直播检测.setTextColor(color)
                    BDshuju.put("yeues03", "0")
                });
                break
            }
            if (text("去完成").visibleToUser().findOnce()) {
                JDNB(1, textContains, "去完成", "视频广告", 3000, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("免手续费").visibleToUser().findOnce()) {
                        sleep(random(1500, 2500))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
            if (text("领奖励").findOnce()) {
                for (let i = 1; i <= 2; i++) {
                    JDNB(1, text, "领奖励", "领奖励", 1000, 1500)
                    JDNB(1, text, "确定", "确定", 500, 1000)
                    sleep(random(800, 1200))
                }
            }
            sleep(random(800, 1200))
        }
        for (let i = 1; i <= 20; i++) {
            JDNB(1, text, "我的", "我的", 1000, 1500)
            try {
                if (text("余额").findOnce() || text("可用").findOnce()) {
                    sleep(random(1500, 1800))
                    let 余额1 = text("可用").findOnce().parent().child(6)
                    let 余额 = 余额1.text()
                    ui.run(() => {
                        ui.世梅直播余额.text(余额);
                        yueesju.put("yeuem03", 余额)
                    });
                    sleep(random(1000, 1200))
                    console.error(SHIJIAN() + " 程序完成")
                    break kie
                }
            } catch (err) {
            }
            sleep(random(800, 1200))
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(1500, 1800))
    GUABGBAPP("世梅直播")
}
function 享视操作() {
    app.launchApp("享视");
    sleep(random(800, 1200))
    console.info(SHIJIAN() + " 享视")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("享视")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            if (text("实时享币收益").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 开始任务")
                sleep(random(500, 800))
                break
            }
            if (!text("实时享币收益").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 等待...")
                sleep(random(1500, 1800))
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        pkelo: for (let i = 1; i <= 30; i++) {
            for (let sx = 0; sx <= 100; sx++) {
                console.info(SHIJIAN() + " 滑动")
                swipe(200, 1800, 200, 200, 800)
                for (let x = 1; x <= 2; x++) {
                    if (!textContains("立即领取").findOnce()) {
                        kmek("2", "立即领取", "领取奖励", 1000, 1500)
                    }
                }
                if (!kmok("2", "/12")) {
                    sleep(random(1000, 1500))
                    if (!textContains("/12").visibleToUser().findOnce()) {
                        if (!textContains("立即领取").findOnce()) {
                            kmek("2", "立即领取", "领取奖励", 1000, 1500)
                        }
                        console.info(SHIJIAN() + " 红包完成")
                        sleep(random(1000, 1500))
                        break  pkelo
                    }
                }
                sleep(random(2500, 5500))
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            JDNB(1, text, "资产", "资产", 500, 800)
            if (text("持有享点越多，每日分红越多").findOnce()) {
                JDNB(1, text, "观看视频领取分红", "领取分红", 2500, 3500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("我的享币").findOnce()) {
                        sleep(random(1500, 2500))
                        break
                    }
                    if (text("整点红包每日6.9.12.15.18.21点出现").findOnce()) {
                        sleep(random(1500, 2500))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
            if (text("整点红包每日6.9.12.15.18.21点出现").findOnce()) {
                JDNB(1, text, "立即领取", "整点领取", 2500, 3500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("我的享币").findOnce()) {
                        sleep(random(1500, 2500))
                        break
                    }
                    if (text("整点红包每日6.9.12.15.18.21点出现").findOnce()) {
                        sleep(random(1500, 2500))
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
            if (text("领取奖励").findOnce()) {
                console.info(SHIJIAN() + " 资产页")
                break;
            }
            if (textContains("实时收益").findOnce()) {
                console.info(SHIJIAN() + " 资产页")
                break;
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 15; i++) {
            if (text("领取奖励").findOnce()) {
                for (let i = 1; i <= 2; i++) {
                    JDNB(1, text, "领取奖励", "领取奖励", 3500, 5500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("我的享币").findOnce()) {
                            sleep(random(1500, 2500))
                            break
                        }
                        if (text("资产").findOnce()) {
                            if (!text("我的享币").visibleToUser().findOnce()) {
                                JDNB(1, text, "资产", "资产", 500, 800)
                            }
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                    sleep(random(500, 800))
                }
            } else {
                if (!text("领取奖励").visibleToUser().findOnce()) {
                    console.info(SHIJIAN() + " 没了！！")
                    break;
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 15; i++) {
            if (text("点击领取").findOnce()) {
                let kkme = text("点击领取").findOnce().parent().child(1)
                let kkke = kkme.text()
                let kuke = kkke.slice(1, -1)
                let kpke = kuke.split("/")
                if (kpke[0] == kpke[1]) {
                    console.info(SHIJIAN() + " 错过完成")
                    break
                } else {
                    JDNB(1, text, "点击领取", "点击领取", 2500, 3500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("我的享币").findOnce()) {
                            sleep(random(1500, 2500))
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
                if (text("(12/12)").findOnce()) {
                    console.info(SHIJIAN() + " 错过完成")
                    break
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            if (text("我的享币").visibleToUser().findOnce()) {
                sleep(random(500, 800))
                let 余额1 = text("我的享币").findOnce().parent().child(1).child(0)
                let 余额 = 余额1.text()
                ui.run(() => {
                    ui.享视余额.text(余额);
                    yueesju.put("yeuem12", 余额)
                });
                sleep(random(500, 800))
                ui.run(() => {
                    ui.享视检测.setText("已完成");
                    ui.享视检测.setTextColor(color)
                    BDshuju.put("yeues12", "0")
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("享视")
}
function 鲸鱼Plus操作() {
    app.launchApp("鲸鱼Plus");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 鲸鱼Plus")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("鲸鱼Plus")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            JDNB(1, desc, "赚元宝", "赚元宝", 500, 800)
            if (desc("打卡说明").findOnce()) {
                console.info(SHIJIAN() + " 到达任务页")
                break
            }
            if (text("跳转中").findOnce()) {
                swipe(0, 1000, 800, 1000, 600)
            }
            if (text("登 录").findOnce()) {
                for (let iwz = 0; iwz <= 20; iwz++) {
                    if (text("登 录").findOnce()) {
                        console.info(SHIJIAN() + " 请登录...")
                        sleep(2000)
                    } else {
                        console.info(SHIJIAN() + " 已登录...")
                        break;
                    }
                }
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 25; i++) {
            if (descContains("已完成").findOnce()) {
                ui.run(() => {
                    ui.鲸鱼Plus检测.setText("已完成");
                    ui.鲸鱼Plus检测.setTextColor(color)
                    BDshuju.put("yeues04", "0")
                });
                break
            } else {
                if (descContains("立即打卡").findOnce()) {
                    kmek(1, "立即打卡", "看视频", 3500, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (desc("打卡说明").findOnce()) {
                            sleep(random(3500, 4500))
                            JDNB(1, descContains, "领取", "收益领取", 500, 800)
                            break
                        }
                        if (desc("继续观看").findOnce()) {
                            click(200, 200)
                        }
                        if (descContains("领取").findOnce()) {
                            break;
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
                if (desc("继续观看").findOnce()) {
                    click(200, 200)
                }
                JDNB(1, desc, "领取奖励", "收益领取", 500, 800)
                JDNB(1, descContains, "立即领取", "收益领取", 500, 800)
            }
            sleep(random(800, 1200))
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(800, 1200))
            if (descContains("我的金元宝").findOnce()) {
                sleep(random(500, 800))
                try {
                    let 余额1 = descContains("我的金元宝").findOnce()
                    let 余额2 = 余额1.desc()
                    let 余额 = 余额2.slice(0, 6)
                    ui.run(() => {
                        ui.鲸鱼Plus余额.text(余额);
                        yueesju.put("yeuem04", 余额)
                    });
                } catch (err) {
                    log(err)
                }
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")

                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("鲸鱼Plus")
}
function 换换操作() {
    app.launchApp("换换");
    sleep(random(800, 1200))
    console.info(SHIJIAN() + " 换换")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("换换")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            JDNB(1, desc, "我的", "我的", 500, 800)
            JDNB(1, descContains, "领取免费积分", "积分区", 500, 800)
            if (descContains("立即参与").findOnce()) {
                console.info(SHIJIAN() + " 到达贡献页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 20; i++) {
            if (desc("每天打卡6个视频领积分\n已完成").findOnce()) {
                ui.run(() => {
                    ui.换换检测.setText("已完成");
                    ui.换换检测.setTextColor(color)
                    BDshuju.put("yeues16", "0")
                });
                sleep(random(1500, 2500))
                break
            }
            if (kmok("1", "立即打卡")) {
                kmek("1", "立即打卡", "视频广告", 2500, 3500)
                JDNB(1, desc, "知道啦", "知道啦", 3500, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (descContains("已观看").findOnce() || descContains("生态赋能").findOnce()) {
                        if (desc("继续观看").findOnce()) {
                            sleep(random(500, 800))
                        }
                        sleep(random(1500, 2500))
                        break
                    }
                    JDNB(1, descContains, "立即领取", "立即领取", 500, 800)
                    JDNB(1, desc, "领取奖励", "领取奖励", 500, 800)
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
            if (desc("继续观看").findOnce()) {
                click(200, 200)
            }
            JDNB(1, descContains, "立即领取", "立即领取", 500, 800)
            JDNB(1, desc, "领取奖励", "领取奖励", 500, 800)
            sleep(random(800, 1200))
        }
        for (let i = 1; i <= 10; i++) {
            sleep(random(500, 800))
            if (descContains("我的积分").findOnce()) {
                sleep(random(500, 800))
                let 余额1 = descContains("我的积分").findOnce()
                let 余额2 = 余额1.desc()
                let 余额 = 余额2.slice(0, 6)
                ui.run(() => {
                    ui.换换余额.text(余额);
                    yueesju.put("yeuem16", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(1500, 1800))
    GUABGBAPP("换换")
}
function 中熵云操作() {
    app.launchApp("中熵云");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 中熵云")
    sleep(random(800, 1200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("中熵云")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            if (text("数据中心").findOnce()) {
                JDNB(1, text, "数据中心", "数据中心", 1000, 1800)
            }
            if (text("个人数据").visibleToUser().findOnce()) {
                if (text("生成中").findOnce()) {
                    console.info(SHIJIAN() + " 已采集")
                    sleep(random(800, 1200))
                    break
                } else {
                    kmek("2", "采集", "看视频任务", 3500, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("个人数据").visibleToUser().findOnce()) {
                            sleep(random(1500, 2500))
                            console.info(SHIJIAN() + " 已采集")
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 20; i++) {
            if (text("个人数据").visibleToUser().findOnce()) {
                swipe(0, 1000, 800, 1000, 600)
            }
            JDNB(1, text, "我的", "我的", 1000, 1500)
            JDNB(1, text, "任务中心", "任务中心", 1000, 1500)
            if (text("看广告签到").findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                break
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 30; i++) {
            if (text("看广告签到").visibleToUser().findOnce()) {
                JDNB(1, text, "看广告签到", "签到视频", 3500, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("做任务赚贡献值").visibleToUser().findOnce()) {
                        sleep(random(1500, 2500))
                        click(200, 200)
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
            if (text("领取奖励").findOnce()) {
                JDNB(1, text, "领取奖励", "领取奖励", 3500, 4500)
            }
            if (text("去完成").visibleToUser().findOnce()) {
                JDNB(1, text, "去完成", "广告视频", 3500, 4500)
                for (let i = 1; i <= 90; i++) {
                    sleep(2000)
                    console.error(SHIJIAN() + " 第" + i + "次检测")
                    if (text("做任务赚贡献值").visibleToUser().findOnce()) {
                        sleep(random(1500, 2500))
                        click(200, 200)
                        break
                    }
                    if (i >= 90) {
                        console.error(SHIJIAN() + " 出现错误...")
                        break kie;
                    }
                }
            }
            if (text("浏览广告（8/8）").findOnce()) {
                break
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 30; i++) {
            if (text("去完成").visibleToUser().findOnce()) {
                JDNB(1, text, "去完成", "去完成", 3500, 4500)
            }
            if (kmok(1, "点击")) {
                kmek("1", "点击", "抽奖", 3500, 4500)
                console.info(SHIJIAN() + " 阅读完成")
                ui.run(() => {
                    ui.中熵云检测.setText("已完成");
                    ui.中熵云检测.setTextColor(color)
                    BDshuju.put("yeues17", "0")
                });
                sleep(random(500, 800))
                break
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 30; i++) {
            if (text("XHD总量").visibleToUser().findOnce()) {
                let 余额2 = text("XHD总量").findOnce().parent().child(0)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.中熵云余额.text(余额);
                    yueesju.put("yeuem17", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            } else {
                swipe(0, 1000, 800, 1000, 600)
                sleep(random(1000, 1500))
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("中熵云")
}
function 熵信操作() {
    app.launchApp("熵信");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 熵信")
    sleep(random(800, 1200))
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("熵信")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(1500, 1800))
            if (text("流量计划").visibleToUser().findOnce()) {
                let buttons = text("流量计划").find();
                let lastButton = buttons[buttons.length - 1];
                click(lastButton.bounds().centerX(), lastButton.bounds().centerY())
                console.info(SHIJIAN() + " 流量计划")
                sleep(random(800, 1200))
            }
            if (text("熵信数据").visibleToUser().findOnce()) {
                console.info(SHIJIAN() + " 任务页")
                sleep(random(800, 1200))
                break
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 35; i++) {
            if (text("28 / 28").findOnce()) {
                console.info(SHIJIAN() + " 广告完成")
                ui.run(() => {
                    ui.熵信检测.setText("已完成");
                    ui.熵信检测.setTextColor(color)
                    BDshuju.put("yeues20", "0")
                });
                break
            } else {
                if (text("🚀 做任务 🚀").findOnce()) {
                    JDNB(1, text, "🚀 做任务 🚀", "签到视频", 3500, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (text("熵信数据").visibleToUser().findOnce()) {
                            sleep(random(3500, 4500))
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie;
                        }
                    }
                }
                if (!text("🚀 做任务 🚀").findOnce()) {
                    for (let i = 1; i <= 10; i++) {
                        console.info(SHIJIAN() + " 等待检测")
                        sleep(random(1500, 1800))
                        if (text("🚀 做任务 🚀").findOnce()) {
                            sleep(random(500, 800))
                            break;
                        }
                    }
                }
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            if (text("可用资产").visibleToUser().findOnce()) {
                let 余额2 = text("可用资产").findOnce().parent().child(0)
                let 余额 = 余额2.text()
                ui.run(() => {
                    ui.熵信余额.text(余额);
                    yueesju.put("yeuem20", 余额)
                });
                sleep(random(1000, 1200))
                console.error(SHIJIAN() + " 程序完成")
                break;
            }
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("熵信")
}

function 灵谷仙境操作() {
    app.launchApp("灵谷仙境");
    sleep(random(1500, 2000))
    console.info(SHIJIAN() + " 灵谷仙境")
    let keshk = threads.start(function () {
        while (true) {
            FNAPP("灵谷仙境")
        }
    });
    let keeew = threads.start(function () {
        while (true) {
            GBgb()
        }
    });
    sleep(random(800, 1200))
    kie: for (let ir = 0; ir <= 0; ir++) {
        for (let i = 1; i <= 20; i++) {
            sleep(random(500, 800))
            if (desc("7日签到").findOnce()) {
                console.info(SHIJIAN() + " 到达任务页")
                sleep(random(800, 1200))
                break
            }
            if (desc("签到\n签到").findOnce()) {
                JDNB(1, desc, "签到\n签到", "签到", 3500, 4500)
            }
            if (i >= 20) {
                console.error(SHIJIAN() + " 出现错误...")
                break kie;
            }
        }
        for (let i = 1; i <= 3; i++) {
            let xdwqm = descEndsWith("签到").find().size()
            let xdwqs = 8 - xdwqm + 1
            if (xdwqs >= 8) {
                click(200, 200)
                sleep(random(1500, 2500))
                break
            }
            let sfkom = desc(xdwqs + "\n" + xdwqs + "\n签到").findOnce()
            let sfkoms = desc(xdwqs + "\n" + xdwqs + "\n签到").findOnce().child(0)
            let jsfknn = sfkoms.bounds().right + random(20, 30)
            let sfkom1 = sfkom.bounds().bottom
            let sfkom2 = sfkom.bounds().top
            let sfkom3 = sfkom1 - sfkom2
            let sfkom4 = sfkom2 + sfkom3 / 2
            click(jsfknn, sfkom4)
            console.info(SHIJIAN() + " 点击签到")
            sleep(random(2500, 3500))
            for (let i = 1; i <= 10; i++) {
                if (desc("看广告\n看广告").findOnce()) {
                    JDNB(1, desc, "看广告\n看广告", "看视频", 3500, 4500)
                    for (let i = 1; i <= 90; i++) {
                        sleep(2000)
                        console.error(SHIJIAN() + " 第" + i + "次检测")
                        if (desc("看广告\n看广告").findOnce()) {
                            sleep(random(2500, 3500))
                            break
                        }
                        if (kmok("2", "点击空白处")) {
                            click(200, 200)
                            sleep(random(1500, 2500))
                            break
                        }
                        if (i >= 90) {
                            console.error(SHIJIAN() + " 出现错误...")
                            break kie
                        }
                    }
                }
            }
            if (!desc("看广告\n看广告").findOnce()) {
                click(200, 200)
                sleep(random(1500, 2500))
                break
            }
            if (i >= 2) {
                click(200, 200)
                sleep(random(1500, 2500))
                break
            }
            sleep(random(500, 800))
        }
        for (let i = 1; i <= 10; i++) {
            swipe(200, 1000, 600, 1000, 600)
            if (desc("获取\n获取").findOnce()) {
                JDNB(1, desc, "获取\n获取", "获取水壶", 500, 800)
                sleep(random(800, 1200))
            } else {
                console.info(SHIJIAN() + " 水壶已领取")
                ui.run(() => {
                    ui.灵谷仙境检测.setText("已完成");
                    ui.灵谷仙境检测.setTextColor(color)
                    BDshuju.put("yeues09", "0")
                });
                break;
            }
            if (desc("看广告\n看广告").findOnce()) {
                sleep(random(800, 1200))
                for (let i = 1; i <= 15; i++) {
                    if (desc("看广告\n看广告").findOnce()) {
                        JDNB(1, desc, "看广告\n看广告", "看视频", 3500, 4500)
                        for (let i = 1; i <= 90; i++) {
                            sleep(2000)
                            console.error(SHIJIAN() + " 第" + i + "次检测")
                            if (desc("完成广告即可领取水壶").findOnce()) {
                                sleep(random(1500, 2500))
                                break
                            }
                            if (kmok("2", "点击空白")) {
                                click(200, 200)
                                sleep(random(1500, 2500))
                                break
                            }
                            if (desc("玩赚\n玩赚").findOnce()) {
                                sleep(random(1500, 2500))
                                break
                            }
                            if (i >= 90) {
                                console.error(SHIJIAN() + " 出现错误...")
                                break kie
                            }
                        }
                    }
                    sleep(random(500, 800))
                }
                break
            }
        }
        for (let i = 1; i <= 10; i++) {
            let 余额 = "app查看"
            ui.run(() => {
                ui.灵谷仙境余额.text(余额);
                yueesju.put("yeuem09", 余额)
            });
            sleep(random(1000, 1200))
            console.error(SHIJIAN() + " 程序完成")
            break;
        }
    }
    keshk.interrupt()
    keeew.interrupt()
    sleep(random(800, 1200))
    GUABGBAPP("灵谷仙境")
}

function GBgb() {
    try {
        if (className("android.widget.ImageView").findOnce()) {
            JDUX(1, "android.widget.ImageView", "7", "3", "2", "关闭-1", "800", "0", "1200", "400", 500, 800)
            JDUX(2, "android.widget.ImageView", "12", "1", "0", "关闭-2", "800", "0", "1200", "400", 500, 800, !text("每日任务").findOnce() && !text("每日视频一").findOnce() && !text("大转盘").findOnce() && !text("今日收益").findOnce())
            JDUX(1, "android.widget.ImageView", "7", "2", "1", "关闭-3", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "23", "4", "关闭-4", "700", "100", "1150", "900", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "19", "2", "关闭-5", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "16", "2", "关闭-6", "800", "0", "1200", "400", 500, 800)
            JDUX(2, "android.widget.ImageView", "8", "2", "1", "关闭-7", "0", "0", "400", "400", 500, 800, !text("任务签到").findOnce())
            JDUX(2, "android.widget.ImageView", "11", "1", "0", "关闭-8", "800", "0", "1200", "400", 500, 800, !text("每日任务").findOnce() && !text("大转盘").findOnce() && !text("新闻资讯").findOnce() && !textContains("秒后点击广告").findOnce() && !textContains("券").findOnce())
            JDUX(1, "android.widget.ImageView", "5", "15", "3", "关闭-9", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "19", "3", "关闭-10", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "20", "3", "关闭-11", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "15", "2", "关闭-12", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "21", "4", "关闭-13", "800", "0", "1200", "400", 500, 800)
            JDUX(2, "android.widget.ImageView", "10", "1", "0", "关闭-14", "800", "0", "1200", "400", 500, 800, !text("生产中").visibleToUser().findOnce() && !text("任务列表").findOnce() && !text("我的钱包").findOnce())
            JDUX(1, "android.widget.ImageView", "4", "3", "1", "关闭-15", "389", "1500", "700", "1800", 500, 800)
            JDUX(2, "android.widget.ImageView", "4", "3", "2", "关闭-16", "389", "1680", "700", "2000", 500, 800, !className("android.widget.ImageView").depth("4").drawingOrder("2").indexInParent("1").findOnce())
            JDUX(1, "android.widget.ImageView", "5", "13", "2", "关闭-17", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "17", "2", "关闭-18", "100", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "22", "4", "关闭-19", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "2", "0", "关闭-20", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "14", "2", "关闭-21", "100", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "8", "3", "2", "关闭-22", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "18", "2", "关闭-23", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "5", "2", "关闭-24", "800", "300", "1200", "600", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "16", "3", "关闭-25", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "7", "4", "0", "关闭-26", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "13", "3", "关闭-27", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "17", "3", "关闭-28", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "20", "4", "关闭-29", "700", "100", "1150", "400", 500, 800)
            JDUX(2, "android.widget.ImageView", "5", "1", "0", "关闭-30", "0", "0", "200", "400", 500, 800, !text("爱豆数量").findOnce() && !textContains("签到").findOnce())
            JDUX(1, "android.widget.ImageView", "6", "5", "1", "关闭-31", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "14", "3", "关闭-32", "800", "0", "1200", "300", 500, 800)
            JDUX(1, "android.widget.ImageView", "7", "4", "1", "关闭-33", "800", "0", "1200", "300", 500, 800)
            JDUX(2, "android.widget.ImageView", "4", "2", "1", "关闭-34", "400", "1500", "650", "2000", 500, 800, !text("BOLO整点红包，观看广告领取").findOnce())
            JDUX(1, "android.widget.ImageView", "6", "7", "1", "关闭-35", "800", "800", "1100", "960", 500, 800)
            JDUX(1, "android.widget.ImageView", "7", "5", "1", "关闭-36", "900", "100", "1100", "300", 500, 800)
            JDUX(1, "android.widget.ImageView", "4", "4", "3", "关闭-37", "400", "1700", "600", "1900", 500, 800)
            JDUX(1, "android.widget.ImageView", "7", "0", "4", "关闭-38", "0", "1700", "1100", "1900", 500, 800)
            JDUX(1, "android.widget.ImageView", "7", "2", "1", "关闭-39", "450", "1700", "600", "2100", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "2", "0", "关闭-40", "900", "38", "1120", "300", 500, 800)
            JDUX(2, "android.widget.ImageView", "8", "5", "1", "关闭-41", "800", "0", "1200", "400", 500, 800, !textContains("释放量").findOnce())
            JDUX(1, "android.widget.ImageView", "5", "16", "2", "关闭-42", "100", "100", "300", "300", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "15", "4", "关闭-43", "800", "100", "1100", "300", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "18", "4", "关闭-44", "100", "100", "280", "300", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "23", "3", "关闭-45", "0", "100", "280", "300", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "15", "2", "关闭-46", "0", "0", "300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "7", "5", "1", "关闭-47", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "4", "1", "0", "关闭-48", "0", "0", "100", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "7", "3", "1", "关闭-49", "0", "100", "300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "2", "1", "关闭-50", "0", "100", "1250", "350", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "12", "2", "关闭-51", "900", "100", "1350", "350", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "18", "4", "关闭-52", "900", "100", "1350", "350", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "16", "3", "关闭-53", "900", "100", "1350", "350", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "1", "1", "关闭-54", "0", "0", "1200", "400", 200, 500)
            JDUX(1, "android.widget.ImageView", "6", "13", "2", "关闭-55", "900", "100", "1350", "350", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "22", "3", "关闭-56", "900", "100", "1350", "350", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "13", "3", "关闭-57", "900", "100", "1350", "350", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "3", "0", "关闭-58", "800", "100", "1220", "680", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "18", "3", "关闭-59", "800", "100", "1220", "680", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "17", "3", "关闭-60", "800", "0", "1200", "400", 500, 800)
            JDUX(2, "android.widget.ImageView", "13", "1", "0", "关闭-61", "800", "0", "1200", "400", 500, 800, !text("非遗传承").findOnce() && !text("人人行").findOnce())
            JDUX(1, "android.widget.ImageView", "4", "9", "4", "关闭-62", "700", "100", "1150", "900", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "20", "2", "关闭-63", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "25", "4", "关闭-64", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "21", "2", "关闭-65", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "1", "0", "关闭-66", "700", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "4", "7", "3", "关闭-67", "389", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "24", "4", "关闭-68", "800", "0", "1300", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "17", "4", "关闭-69", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "4", "8", "3", "关闭-70", "389", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "4", "1", "弹窗-1", "880", "100", "1200", "1000", 1500, 1800)
            JDUX(2, "android.widget.ImageView", "7", "3", "2", "弹窗-2", "400", "1600", "600", "2100", 500, 800, !text("请点击领取获得元宝奖励").findOnce())
            JDUX(1, "android.widget.ImageView", "5", "2", "1", "弹窗-3", "160", "100", "720", "1800", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "8", "1", "弹窗-4", "750", "650", "1120", "900", 500, 800)
            JDUX(2, "android.widget.ImageView", "7", "2", "1", "弹窗-5", "800", "300", "1200", "880", 500, 800, !text("为什么看到此广告").findOnce() && !text("浏览视频").findOnce())
            JDUX(2, "android.widget.ImageView", "14", "1", "0", "弹窗-6", "0", "0", "1200", "880", 500, 800, !text("今日获得金币（个）").findOnce() && !text("打卡赚任务券").findOnce() && !text("每日赚积分").findOnce() && !text("消息中心").findOnce() && !text("微矿通证").findOnce())
            JDUX(2, "android.widget.ImageView", "6", "1", "0", "弹窗-7", "700", "500", "1080", "880", 500, 800, !textContains("看广告").findOnce() && !textContains("补充").findOnce() && !text("秒后发放").findOnce())
            JDUX(1, "android.widget.ImageView", "6", "1", "0", "弹窗-8", "0", "900", "300", "1200", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "6", "1", "弹窗-9", "850", "500", "1080", "880", 500, 800)
            JDUX(2, "android.widget.ImageView", "11", "3", "2", "弹窗-10", "400", "1800", "700", "2200", 500, 800, !text("秒后发放").findOnce())
            JDUX(1, "android.widget.ImageView", "7", "4", "0", "弹窗-11", "660", "360", "1120", "880", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "6", "1", "弹窗-12", "880", "180", "1220", "580", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "5", "1", "弹窗-13", "880", "600", "1220", "900", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "5", "2", "弹窗-14", "800", "600", "1220", "1120", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "7", "2", "弹窗-15", "800", "280", "1220", "680", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "7", "3", "弹窗-16", "800", "280", "1220", "680", 500, 800)
            JDUX(2, "android.widget.ImageView", "5", "1", "0", "弹窗-17", "800", "0", "1300", "400", 500, 800, !textContains("s").findOnce())
            JDUX(1, "android.widget.ImageView", "7", "4", "1", "弹窗-18", "660", "360", "1120", "880", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "4", "2", "弹窗-19", "800", "600", "1220", "1120", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "8", "3", "弹窗-20", "800", "600", "1220", "1120", 500, 800)
            JDUX(1, "android.widget.ImageView", "5", "1", "0", "弹窗-21", "800", "800", "1000", "1120", 500, 800)
            JDUX(1, "android.widget.ImageView", "6", "8", "2", "弹窗-22", "800", "0", "1200", "600", 500, 800)
            JDUX(2, "android.widget.ImageView", "14", "3", "2", "弹窗-23", "200", "1500", "800", "2290", 500, 800, text("扭动手机").findOnce())
            JDUX(1, "android.widget.ImageView", "4", "4", "1", "弹窗-24", "700", "100", "1150", "900", 500, 800)
            JDUX(1, "android.widget.ImageView", "4", "5", "2", "弹窗-25", "389", "800", "1100", "2000")
            JDUX(2, "android.widget.ImageView", "9", "1", "0", "关闭-微", "160", "100", "1200", "1800", 500, 800, textContains("去微信").findOnce())
            JDUX(2, "android.widget.ImageView", "9", "1", "0", "关闭-微", "160", "100", "1200", "1800", 500, 800, textContains("微信小").findOnce())
        }
        if (className("android.view.ViewGroup").findOnce()) {
            JDUX(1, "android.view.ViewGroup", "10", "2", "1", "关闭1-1", "800", "0", "1200", "400", 500, 800)
            JDUX(2, "android.view.ViewGroup", "11", "2", "1", "关闭1-2", "800", "0", "1200", "400", 500, 800, !textMatches("\\b\\d+\\b").findOnce())
            JDUX(1, "android.view.ViewGroup", "10", "1", "0", "弹窗1-1", "800", "400", "1200", "880", 500, 800)
            JDUX(1, "android.view.ViewGroup", "16", "1", "0", "弹窗1-2", "0", "500", "300", "880", 500, 800)
            JDUX(1, "android.view.ViewGroup", "14", "1", "0", "弹窗1-3", "0", "500", "300", "880", 500, 800)
            JDUX(1, "android.view.ViewGroup", "11", "1", "0", "弹窗1-4", "600", "300", "1200", "880", 500, 800)
        }
        if (className("android.view.View").findOnce()) {
            JDUX(2, "android.view.View", "9", "0", "2", "关闭2-1", "800", "0", "1200", "400", 500, 800, !desc("打卡规则").findOnce() && !text("反馈").depth("9").drawingOrder("0").indexInParent("2").findOnce() && !desc("签到").findOnce() && !desc("邀请好友").findOnce() && !desc("求购市场").findOnce())
            JDUX(2, "android.view.View", "11", "0", "0", "关闭2-2", "800", "0", "1200", "600", 500, 800, !text("广告任务").findOnce() && !desc("预计每日可得").findOnce() && !text("我的星豆").findOnce())
            JDUX(2, "android.view.View", "10", "0", "0", "关闭2-3", "800", "0", "1120", "500", 500, 800, !text("反馈").depth("10").findOnce() && !desc("预计每日可得").findOnce())
            JDUX(2, "android.view.View", "11", "0", "1", "关闭2-4", "700", "300", "1200", "1120", 500, 800, !text("任务列表").findOnce() && !text("话费充值").findOnce() && !desc("打卡规则").findOnce() && !text("1级阶梯").findOnce() && !desc("数字文化资产").findOnce())
            JDUX(2, "android.view.View", "10", "0", "1", "关闭2-5", "0", "0", "1200", "400", 500, 800, !textContains("签到").findOnce() && !text("我的数据").findOnce() && !text("权限详情").depth("13").indexInParent("1").findOnce() && !desc("已解锁").findOnce() && !descContains("任务").findOnce() && !text("广告任务").findOnce() && !text("翻倍领取").findOnce() && !text("短剧").findOnce())
            JDUX(2, "android.view.View", "9", "0", "0", "关闭2-6", "700", "0", "1200", "400", 500, 800, !desc("预计每日可得").findOnce() && !className("android.widget.LinearLayout").findOnce())
            JDUX(2, "android.view.View", "9", "0", "3", "关闭2-7", "700", "0", "1300", "400", 500, 800, !desc("打卡规则").findOnce() && !text("反馈").depth("9").findOnce() && !desc("预计每日可得").findOnce() && !desc("个户清洁").findOnce())
            JDUX(1, "android.view.View", "9", "0", "1", "关闭2-8", "700", "1000", "1120", "1500", 500, 800)
            JDUX(1, "android.view.View", "10", "3", "2", "关闭2-9", "820", "100", "1120", "300", 500, 800)
            JDUX(1, "android.view.View", "10", "0", "4", "关闭2-10", "800", "0", "1120", "500", 500, 800)
            JDUX(1, "android.view.View", "6", "2", "1", "关闭2-11", "0", "0", "300", "320", 500, 800)
            JDUX(2, "android.view.View", "12", "0", "4", "关闭2-12", "800", "0", "1300", "320", 500, 800, !text("流动池").findOnce())
            JDUX(2, "android.view.View", "9", "0", "1", "关闭2-13", "700", "0", "1120", "500", 500, 800, !desc("预计每日可得").findOnce() && !text("利未").findOnce() && !desc("打卡说明").findOnce())
            JDUX(2, "android.view.View", "12", "0", "0", "关闭2-14", "700", "200", "1200", "600", 500, 800, !text("看广告完成任务获取文化积分").findOnce())
            JDUX(1, "android.view.View", "10", "0", "3", "关闭2-15", "900", "100", "1200", "300", 500, 800)
            JDUX(1, "android.view.View", "13", "0", "1", "关闭2-16", "400", "1800", "700", "2100", 500, 800)
            JDUX(2, "android.view.View", "9", "0", "0", "关闭2-17", "0", "600", "1100", "820", 500, 800, !desc("完成任务可收获果实").findOnce())
            JDUX(2, "android.view.View", "9", "0", "0", "关闭2-18", "0", "700", "1100", "950", 500, 800, !text("WSM(基础)").findOnce() && !desc("完成任务可收获果实").findOnce())
            JDUX(1, "android.view.View", "11", "0", "1", "关闭2-19", "770", "100", "1100", "350", 500, 800)
            JDUX(2, "android.view.View", "12", "0", "1", "关闭2-20", "870", "100", "1100", "550", 500, 800, !text("田园宠物").findOnce())
            JDUX(2, "android.view.View", "11", "0", "2", "关闭2-21", "770", "100", "1100", "450", 500, 800, !text("已累计签到").findOnce())
            JDUX(2, "android.view.View", "10", "0", "1", "弹窗2-1", "380", "1380", "760", "1800", 500, 800, !text("任务列表").findOnce())
            JDUX(2, "android.view.View", "10", "0", "1", "弹窗2-2", "300", "1300", "770", "1800", 500, 800, !text("任务列表").findOnce())
            JDUX(2, "android.view.View", "12", "0", "1", "弹窗2-3", "700", "300", "1100", "600", 500, 800)
            JDUX(2, "android.view.View", "9", "0", "1", "弹窗2-4", "400", "1300", "700", "2100", 500, 800, !className("android.widget.ImageView").depth("9").drawingOrder("0").indexInParent("0").boundsInside(0, 700, 1100, 1600).findOnce())
            JDUX(2, "android.view.View", "13", "0", "1", "弹窗2-5", "400", "1500", "700", "1800", 500, 800, !text("翻倍领取").findOnce() && !descEndsWith("签到").findOnce())
            JDUX(2, "android.view.View", "16", "0", "9", "弹窗2-6", "500", "900", "1300", "1800", 500, 800, !text("已付款").findOnce() && !text("日常任务").findOnce())
            JDUX(1, "android.view.View", "16", "0", "10", "弹窗2-7", "500", "900", "1300", "1800", 500, 800)
        }
        if (className("android.widget.FrameLayout").findOnce()) {
            JDUX(1, "android.widget.FrameLayout", "11", "2", "1", "关闭3-1", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "10", "1", "0", "关闭3-2", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "6", "2", "关闭3-3", "800", "100", "1200", "550", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "3", "2", "关闭3-4", "800", "400", "1100", "650", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "10", "2", "1", "关闭3-5", "800", "0", "1200", "650", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "3", "1", "弹窗3-1", "800", "100", "1200", "600", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "5", "1", "弹窗3-2", "800", "100", "1200", "600", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "7", "2", "1", "弹窗3-3", "800", "300", "1100", "550", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "6", "1", "弹窗3-4", "800", "400", "1100", "900", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "4", "2", "弹窗3-5", "800", "200", "1100", "600", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "2", "1", "弹窗3-6", "800", "200", "1100", "600", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "4", "2", "弹窗3-7", "0", "200", "200", "600", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "4", "4", "弹窗3-8", "800", "900", "1200", "1150", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "6", "2", "弹窗3-9", "0", "300", "200", "500", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "6", "2", "1", "弹窗3-10", "800", "700", "1150", "900", 500, 800)
            JDUX(1, "android.widget.FrameLayout", "8", "2", "1", "弹窗3-11", "700", "300", "900", "500", 500, 800)
        }
        if (className("android.widget.LinearLayout").findOnce()) {
            JDUX(1, "android.widget.LinearLayout", "11", "3", "0", "关闭5-1", "700", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.LinearLayout", "11", "3", "2", "关闭5-2", "700", "0", "1200", "400", 500, 800)
        }
        if (className("android.widget.RelativeLayout").findOnce()) {
            JDUX(1, "android.widget.RelativeLayout", "4", "6", "1", "关闭6-1", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.RelativeLayout", "4", "7", "1", "关闭6-2", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.RelativeLayout", "9", "4", "5", "关闭6-3", "480", "800", "1000", "1300", 500, 800)
            JDUX(1, "android.widget.RelativeLayout", "4", "7", "2", "关闭6-4", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.RelativeLayout", "4", "8", "1", "关闭6-5", "800", "0", "1200", "400", 500, 800)
            JDUX(1, "android.widget.RelativeLayout", "4", "8", "2", "关闭6-6", "800", "0", "1200", "400", 500, 800)
            JDUX(2, "android.widget.RelativeLayout", "9", "1", "0", "返回6-7", "0", "0", "200", "300", 500, 800, text("任务已完成").depth("13").findOnce() || text("已发放").findOnce() || text("0秒").findOnce())
            JDUX(1, "android.widget.RelativeLayout", "4", "5", "2", "关闭6-8", "800", "0", "1200", "400", 500, 800)
        }
        if (className("android.widget.TextView").findOnce()) {
            JDUX(2, "android.widget.TextView", "11", "0", "2", "关闭7-1", "780", "100", "1200", "350", 500, 800, !text("反馈").depth("11").indexInParent("0").findOnce())
            JDUX(2, "android.widget.TextView", "10", "0", "0", "关闭7-2", "780", "100", "1200", "680", 500, 800, !text("反馈").depth("10").indexInParent("0").findOnce())
            JDUX(2, "android.widget.TextView", "9", "0", "1", "关闭7-3", "780", "100", "1200", "350", 500, 800, !textContains("秒").findOnce())
            JDUX(1, "android.widget.TextView", "11", "0", "0", "关闭7-4", "780", "100", "1200", "350", 500, 800)
            JDUX(1, "android.widget.TextView", "10", "0", "1", "关闭7-5", "0", "100", "200", "350", 500, 800)
            JDUX(2, "android.widget.TextView", "11", "0", "1", "关闭7-6", "800", "100", "1200", "350", 500, 800, !text("重抽卡").findOnce() && !text("跳过").findOnce() && !text("反馈").findOnce())
            JDUX(1, "android.widget.TextView", "10", "0", "2", "关闭7-7", "700", "100", "1200", "1000", 500, 800)
            JDUX(2, "android.widget.TextView", "9", "0", "2", "关闭7-8", "780", "100", "1200", "350", 500, 800, !text("反馈").depth("9").indexInParent("2").findOnce())
            JDUX(1, "android.widget.TextView", "9", "0", "3", "关闭7-9", "780", "100", "1200", "350", 500, 800)
            JDUX(1, "android.widget.TextView", "10", "0", "1", "关闭7-10", "900", "100", "1100", "350", 500, 800)
            JDUX(1, "android.widget.TextView", "4", "4", "2", "关闭7-11", "900", "100", "1100", "350", 500, 800)
            JDUX(1, "android.widget.TextView", "4", "4", "1", "关闭7-12", "900", "400", "1000", "550", 500, 800)
            JDUX(1, "android.widget.TextView", "10", "0", "5", "关闭7-13", "800", "100", "1100", "350", 500, 800)
            JDUX(2, "android.widget.TextView", "10", "1", "0", "弹窗7-1", "450", "600", "1000", "1250", 500, 800, !text("大转盘").findOnce() && !text("总活跃度").findOnce())
            JDUX(1, "android.widget.TextView", "12", "0", "1", "弹窗7-2", "850", "300", "1000", "700", 500, 800)
            JDUX(1, "android.widget.TextView", "13", "0", "2", "弹窗7-3", "450", "1700", "650", "1900", 500, 800)
        }
        if (className("android.widget.Image").findOnce()) {
            JDUX(1, "android.widget.Image", "18", "0", "0", "弹窗8-1", "800", "300", "1000", "800", 500, 800)
            JDUX(1, "android.widget.Image", "21", "0", "1", "弹窗8-2", "800", "300", "1100", "500", 500, 800)
            JDUX(1, "android.widget.Image", "21", "0", "2", "弹窗8-3", "800", "300", "1100", "500", 500, 800)
            JDUX(1, "android.widget.Image", "20", "0", "5", "弹窗8-4", "400", "1500", "650", "1900", 500, 800)
            JDUX(1, "android.widget.Image", "11", "0", "1", "弹窗8-5", "400", "600", "1500", "1900", 500, 800)
            JDUX(1, "android.widget.Image", "19", "0", "0", "弹窗8-6", "600", "400", "1000", "900", 500, 800)
            JDUX(2, "android.widget.Image", "17", "0", "0", "弹窗8-7", "600", "400", "1000", "900", 500, 800, !text("熵信数据").findOnce())
            JDUX(1, "android.widget.Image", "21", "0", "0", "弹窗8-8", "600", "400", "1000", "900", 500, 800)
        }
        if (text("X").depth("15").findOnce()) {
            JDNB(1, text, "X", "关闭X", 500, 800)
        }
        if (textContains("需要下滑浏览更多才能领取").findOnce()) {
            for (let i = 1; i <= 3; i++) {
                console.info(SHIJIAN() + " 广告上划")
                swipe(500, 1600, 200, 300, 500)
                sleep(random(1500, 2500))
                swipe(500, 300, 200, 1600, 500)
                sleep(random(1500, 2500))
            }
        }
        if (text("浏览页面25s 领取奖励").findOnce()) {
            console.info(SHIJIAN() + " 下划")
            swipe(500, 1200, 200, 1600, 500)
        }
        if (text("抓住奖励机会").findOnce()) {
            JDNB(1, text, "抓住奖励机会", "抓住奖励", 5000, 7000)
        }
        if (text("应用权限").findOnce()) {
            if (text("隐私政策").findOnce()) {
                click(200, 300)
                console.info(SHIJIAN() + " 隐私政策？")
                sleep(random(3500, 5500))
            }
        }
        let kklomx = text("直播中").find().size()
        if (kklomx >= 4) {
            for (let i = 1; i <= 10; i++) {
                swipe(200, 1800, 200, 200, 500)
                sleep(random(2000, 3000))
                console.info(SHIJIAN() + " 直播广告")
            }
            console.info(SHIJIAN() + " 返回任务页")
            swipe(0, 1000, 800, 1000, 600)
        }
        JDNB(2, text, "无法关闭", "无法关闭", 500, 800, text("为什么看到此广告").findOnce() || text("举报广告").findOnce())
        JDNB(2, id, "img_reward_get", "开心收下", 500, 800, text("奖励已发放，可前往账户余额查看").findOnce())
        JDNB(2, text, "禁止", "禁止", 500, 800, textContains("安装应用？").findOnce())
        JDNB(1, textContains, "跳 过", "跳过-1", 500, 800)
        JDNB(1, textContains, "| 跳过", "跳过-2", 500, 800)
        JDNB(2, textContains, "跳过", "跳过-3", 500, 800, !textContains("秒后").findOnce() && !text("点击广告可领取奖励").findOnce() && !textContains("s").findOnce() && !textMatches("\\b\\d+\\b").findOnce() || textContains("奖励已领取").findOnce() || textContains("已获得奖励").findOnce())
        JDNB(2, text, "查看广告详情", "查看详情", 500, 800, text("只需点击一下广告，即可获得奖励").findOnce())
        JDNB(2, text, "同意并继续", "同意并继续", 500, 800, text("服务协议和隐私政策").findOnce())
        JDNB(2, desc, "我知道了", "我知道了", 500, 800, desc("公告").findOnce() && desc("我知道了").findOnce())
        JDNB(2, desc, "知道啦", "知道啦", 500, 800, desc("公告").findOnce() && desc("知道啦").findOnce())
        JDNB(2, text, "我知道了", "我知道了", 500, 800, (text("公告").findOnce() || text("温馨提示").findOnce()) && text("我知道了").findOnce())
        JDNB(2, text, "X", "奖励X", 500, 800, text("恭喜获得奖励").findOnce())
        JDNB(2, text, "完成", "小说完成", 500, 800, text("点击右边完成即可退出").findOnce())
        JDNB(2, text, "坚持退出", "坚持退出", 500, 800, text("差一步就能领取奖励~").findOnce())
        JDNB(2, text, "去领取奖励", "去领取奖励", 500, 800, textContains("忘记点击广告领取奖励啦～").findOnce())
        JDNB(1, text, "关闭", "关闭", 500, 800)
        JDNB(1, textContains, "含泪", "含泪", 500, 800)
        JDNB(2, textContains, "亏本离开", "离开", 500, 800, textContains("金币!").findOnce())
        JDNB(2, text, "取消", "取消安装", 500, 800, text("安装").findOnce())
        JDNB(1, text, "关闭按钮", "关闭按钮", 500, 800)
        JDNB(2, text, "残忍离开", "残忍离开", 500, 800, text("该视频提到的内容是").findOnce() || text("真的不再看看了吗？").findOnce())
        JDNB(1, text, "放弃福利", "放弃福利", 500, 800)
        JDNB(1, text, "继续播放视频内容", "继续播放", 1500, 1800)
        JDNB(1, text, "放弃下载", "放弃下载", 1500, 1800)
        JDNB(2, text, "立即观看", "立即观看", 500, 800, text("由第三方提供激励视频").findOnce())
        JDNB(2, text, "点击广告拿奖励", "点击奖励", 500, 800, text("点击广告，即可获得奖励").findOnce())
        JDNB(2, text, "我已观看", "我已观看", 500, 800, text("请在微信小程序中观看广告").findOnce())
        JDNB(2, textContains, "点击一下", "点击一下", 500, 800, text("点击广告可领取奖励").findOnce())
        JDNB(2, textContains, "点击按钮", "点击一下", 500, 800, text("点击广告可领取奖励").findOnce())
        JDNB(2, textContains, "点击跳转", "点击一下", 500, 800, text("点击广告可领取奖励").findOnce())
        JDNB(2, text, "立即退出", "立即退出", 500, 800, textContains("去看短剧").findOnce() || textContains("再玩15秒小游戏").findOnce())
        if (textMatches(/(.*再看\d+秒*.*|.*可*奖励.*|.还剩\d+秒*.)/).findOnce()) {
            let options = ["继续观看", "留下看看", "继续播放"]
            for (let i = 0; i < options.length; i++) {
                if (text(options[i]).findOnce()) {
                    JDNB(1, text, options[i], options[i], 8000, 10000)
                    break
                }
            }
        }
        if (text("完成小说试读任务领取奖励").findOnce()) {
            log(SHIJIAN() + " 小说试读")
            while (true) {
                if (text("完成小说试读任务领取奖励").findOnce()) {
                    if (text("完成试读后您可继续免费畅读本小说").findOnce()) {
                        while (true) {
                            if (text("点击完成试读").findOnce()) {
                                JDNB(1, text, "点击完成试读", "点击", 3000, 3500)
                                if (textContains("点此刷新").findOnce()) {
                                    JDNB(1, textContains, "点此刷新", "点击刷新", 3000, 3500)
                                }
                            } else {
                                if (text("任务已完成").findOnce()) {
                                    JDNB(1, text, "完成", "完成", 500, 800)
                                    JDUX(1, "android.widget.ImageView", "6", "3", "0", "小-弹-2", "800", "250", "1000", "550")
                                    JDUX(1, "android.widget.ImageView", "6", "2", "0", "小-弹-1", "800", "250", "1100", "450")
                                } else {
                                    swipe(500, 1600, 200, 1200, 800)
                                    sleep(random(1500, 1800))
                                }
                                if (text("您可免费畅读本书了").findOnce()) {
                                    if (className("android.widget.ImageView").depth("5").drawingOrder("1").indexInParent("1").boundsInside(880, 0, 1200, 400).findOnce()) {
                                        JDUX(1, "android.widget.ImageView", "5", "1", "1", "关闭-小说", "880", "0", "1200", "400", 500, 800)
                                        break;
                                    }
                                }
                            }
                        }
                        break;
                    } else {
                        for (let ik1 = 0; ik1 <= 3; ik1++) {
                            swipe(500, 1800, 500, 300, 500)
                        }
                        sleep(random(2500, 3500))
                    }
                }
            }
        }
        if (text("根据下方任务提示领取奖励").findOnce()) {
            log(SHIJIAN() + " 小说试读1")
            while (true) {
                if (text("点击下方图片完成任务").findOnce()) {
                    while (true) {
                        JDNB(1, text, "点击完成任务", "点击", 3000, 3500)
                        JDNB(1, textContains, "点此刷新", "点击刷新", 3000, 3500)
                        if (text("完成").visibleToUser().findOnce()) {
                            JDNB, (1, text, "完成", "关闭完成", 500, 800)
                            break;
                        } else {
                            swipe(500, 1800, 200, 100, 500)
                            sleep(random(2500, 3500))
                        }
                    }
                    break;
                } else {
                    for (let ik1 = 0; ik1 <= 5; ik1++) {
                        swipe(500, 1800, 200, 100, 500)
                    }
                    sleep(random(1200, 1800))
                }
            }
        }
    } catch (err) {
        log(err)
    }
}
function JDUX(kobp, sux1, sux2, sux3, sux4, koms, FWzo, FWsg, FWyu, FWxa, zdsa, zxsa, kond) {
    try {
        if (kobp == 1) {
            let a = className(sux1).depth(sux2).drawingOrder(sux3).indexInParent(sux4).boundsInside(FWzo, FWsg, FWyu, FWxa).visibleToUser().findOnce();
            if (a != null) {
                let x11 = a.bounds().left;
                let x22 = a.bounds().right;
                let y11 = a.bounds().top;
                let y22 = a.bounds().bottom;
                let x = random(Math.floor(x11 + 10), Math.floor(x22 - 10));
                let y = random(Math.floor(y11 + 10), Math.floor(y22 - 10));
                let timedelay = random(50, 150);
                press(x, y, timedelay)
                console.log(SHIJIAN() + " " + koms);
                sleep(random(zdsa, zxsa))
                return true;
            }
        }
        if (kobp == 2) {
            let pukw = kond
            if (pukw) {
                let a = className(sux1).depth(sux2).drawingOrder(sux3).indexInParent(sux4).boundsInside(FWzo, FWsg, FWyu, FWxa).visibleToUser().findOnce();
                if (a != null) {
                    let x11 = a.bounds().left;
                    let x22 = a.bounds().right;
                    let y11 = a.bounds().top;
                    let y22 = a.bounds().bottom;
                    let x = random(Math.floor(x11 + 10), Math.floor(x22 - 10));
                    let y = random(Math.floor(y11 + 10), Math.floor(y22 - 10));
                    let timedelay = random(50, 150);
                    press(x, y, timedelay)
                    console.log(SHIJIAN() + " " + koms);
                    sleep(random(zdsa, zxsa))
                    return true;
                }
            }
        }
    } catch (err) {
        log(err)
    }
}
function JDNB(kobp, komb, shux, koms, zdsa, zxsa, kond) {
    try {
        if (kobp == 1) {
            let a = komb(shux).visibleToUser().findOnce();
            if (a != null) {
                let x11 = a.bounds().left;
                let x22 = a.bounds().right;
                let y11 = a.bounds().top;
                let y22 = a.bounds().bottom;
                let x = random(Math.floor(x11 + 10), Math.floor(x22 - 10));
                let y = random(Math.floor(y11 + 10), Math.floor(y22 - 10));
                let timedelay = random(50, 150);
                press(x, y, timedelay);
                console.log(SHIJIAN() + " " + koms);
                sleep(random(zdsa, zxsa))
                return true;
            }
        }
        if (kobp == 2) {
            let pukw = kond
            if (pukw) {
                let a = komb(shux).visibleToUser().findOnce();
                if (a != null) {
                    let x11 = a.bounds().left;
                    let x22 = a.bounds().right;
                    let y11 = a.bounds().top;
                    let y22 = a.bounds().bottom;
                    let x = random(Math.floor(x11 + 10), Math.floor(x22 - 10));
                    let y = random(Math.floor(y11 + 10), Math.floor(y22 - 10));
                    let timedelay = random(50, 150);
                    press(x, y, timedelay);
                    console.log(SHIJIAN() + " " + koms);
                    sleep(random(zdsa, zxsa))
                    return true;
                }
            }
        }
    } catch (err) {
        log(err)
    }
}
function SHIJIAN() {
    let date = new Date();
    let hour = date.getHours(), minute = date.getMinutes(), seconds = date.getSeconds();
    if (hour < 10) {
        hour = "0" + hour;
    };
    if (minute < 10) {
        minute = "0" + minute;
    };
    if (seconds < 10) {
        seconds = "0" + seconds;
    };
    return hour + ":" + minute + ":" + seconds;
}
function GUABGBAPP(name1) {
    let packageName = app.getPackageName(name1)
    app.openAppSetting(packageName)
    log("关闭-" + name1)
    sleep(1000)
    while (true) {
        let is_sure = textMatches(/(.*强.*|.*停.*|.*结.*|.*行.*)/).findOnce()
        if (is_sure !== null) {
            is_sure.click();
            sleep(random(500, 800))
        }
        while (true) {
            let is_sureh = textMatches(/(强行停止|.*确.*|.*定.*)/).findOnce()
            if (is_sureh !== null) {
                is_sureh.click();
                sleep(random(500, 800))
                break;
            }
        }
        break;
    }
    sleep(random(500, 800))
    back();
}
function FNAPP(YYming) {
    let YYbm = app.getPackageName(YYming)
    if (currentPackage() == YYbm) {
    } else {
        app.launchPackage(YYbm)
    }
}
function ZTquanx() {
    let Thread = threads.start(function () {
        if (auto.service != null) {
            let Allow = textMatches(/(允许|立即开始|统一)/).findOne(10 * 1000);
            if (Allow) {
                Allow.click();
            }
        }
    });
    if (!requestScreenCapture()) {
        console.error(SHIJIAN() + " 截图失败")
        return false;
    } else {
        Thread.interrupt()
        console.error(SHIJIAN() + " 截图成功")
        sleep(random(800, 1000))
        return true;
    }
}
function JIAQUN() {
    let 加群 = threads.start(function () {
        app.startActivity({
            action: "android.intent.action.VIEW",
            data: "mqqapi://card/show_pslcard?src_type=internal&version=1&card_type=group&uin=460638659",
            packageName: "com.tencent.mobileqq",
        });
        for (let i = 1; i <= 10; i++) {
            if (text("加入群聊").findOnce()) {
                sleep(random(500, 800))
                text("加入群聊").click()
                break;
            }
            if (text("分享群聊").findOnce()) {
                sleep(random(500, 800))
                break;
            }
            sleep(1000)
        }
        加群.interrupt()
    });
}
function KONGZHITAI() {
    let w = floaty.rawWindow(
        <frame >
            <com.stardust.autojs.core.console.ConsoleView id="console" h="80" w="150" bg="#80444444" />
        </frame>
    );
    w.setTouchable(false);
    w.console.setConsole(runtime.console);
    w.console.hideEditText()
    w.setPosition(10, 1800);
    setInterval(() => { }, 1000);
}
function cscne() {
    let fsshurz1 = ui.xhcs.text()
    yuexe.put("fsmex", fsshurz1)
}
function XUANFUCHAUNG() {
    return new android.provider.Settings().canDrawOverlays(context);
}
function kmok(keerk, wenz) {
    let result = gmlkit.ocr(captureScreen(), "zh")
    if (keerk == 1) {
        let managerBtn = result.find(3, e => (e.text == wenz))
        return managerBtn
    }
    if (keerk == 2) {
        let managerBtn = result.find(3, e => (e.text.indexOf(wenz) != -1))
        return managerBtn
    }
}
function kede(keerk, wenz) {
    let res = paddle.ocr(captureScreen());
    if (keerk == 1) {
        let result = res.find(e => (e.text == wenz))
        return result
    }
    if (keerk == 2) {
        let result = res.find(e => (e.text.indexOf(wenz) != -1))
        return result
    }
}
function kmek(keerk, wenz, smke, zdsa, zxsa) {
    let result = gmlkit.ocr(captureScreen(), "zh")
    if (keerk == 1) {
        let managerBtn = result.find(3, e => (e.text == wenz))
        if (managerBtn != null) {
            let wenbkoj = managerBtn.bounds.left + random(1, 5), wenbkhg = managerBtn.bounds.top + random(1, 5)
            if (wenbkoj >= 0 && wenbkhg >= 0) {
                press(wenbkoj, wenbkhg, 1);
                console.log(SHIJIAN() + " " + smke);
                sleep(random(zdsa, zxsa))
            }
        }
    }
    if (keerk == 2) {
        let managerBtn = result.find(3, e => (e.text.indexOf(wenz) != -1))
        if (managerBtn != null) {
            let wenbkoj = managerBtn.bounds.left + random(1, 5), wenbkhg = managerBtn.bounds.top + random(1, 5)
            if (wenbkoj >= 0 && wenbkhg >= 0) {
                press(wenbkoj, wenbkhg, 1);
                console.log(SHIJIAN() + " " + smke);
                sleep(random(zdsa, zxsa))
            }
        }
    }
}
function kedk(keerk, wenz, smke, zdsa, zxsa) {
    let res = paddle.ocr(captureScreen());
    if (keerk == 1) {
        let result = res.find(e => (e.text == wenz))
        if (result != undefined) {
            press(result.bounds.left, result.bounds.top, 1);
            console.log(SHIJIAN() + " " + smke);
            sleep(random(zdsa, zxsa))
        }
    }
    if (keerk == 2) {
        let result = res.find(e => (e.text.indexOf(wenz) != -1))
        if (result != undefined) {
            press(result.bounds.left, result.bounds.top, 1);
            console.log(SHIJIAN() + " " + smke);
            sleep(random(zdsa, zxsa))
        }
    }
}